R
Ram
I need to create custome performance counters for my asp.net application,
these counters am creating in application_start event.
to create this counters i used following setting in IIS and web.config file
in IIS ---> Directory security tab--->
1) checked anonymus access and integrated windows authentication
2) settings in web.config --->
<identity impersonate = "true" userName = "mycomputername\TestRam"
password = "<password>" />
<authorization>
<allow users="*" />
</authorization>
<authentication mode="Windows" />
with the above settings its works fine, TestRam is local Admin
Now with my requirement I should not use plain password in my web.config, i
decided to use this thorugh IIS setting
in IIS ---> Directory security tab--->
1) checked anonymus access and integrated windows authentication
2) In anonymus section, i used following account as my anonymus account
mycomputername\TestRam
3) settings in web.config --->
<identity impersonate = "true" />
<authorization>
<allow users="*" />
</authorization>
<authentication mode="Windows" />
if i run the application i will get " Reqired registry access not allowed"
when i check identity account through "Envirnoment.UserName" i will see the
above account and even with "Windowsidentity.GetCurrent().name"
Even I gave explicitly full control permissions to above account in
following registrys
1)HKEY_LOCAL_MACHINE\SOFTWARE\MICROSFT\WINDOWSNT\CURRENTVERSION\Perflib
2) HKEY_LOCAL_MACHINE\SYSTEM\Controlset001\Service as well as ControlSet002
can anybody help me as it is due to move to my technical center
Regards
Ram
these counters am creating in application_start event.
to create this counters i used following setting in IIS and web.config file
in IIS ---> Directory security tab--->
1) checked anonymus access and integrated windows authentication
2) settings in web.config --->
<identity impersonate = "true" userName = "mycomputername\TestRam"
password = "<password>" />
<authorization>
<allow users="*" />
</authorization>
<authentication mode="Windows" />
with the above settings its works fine, TestRam is local Admin
Now with my requirement I should not use plain password in my web.config, i
decided to use this thorugh IIS setting
in IIS ---> Directory security tab--->
1) checked anonymus access and integrated windows authentication
2) In anonymus section, i used following account as my anonymus account
mycomputername\TestRam
3) settings in web.config --->
<identity impersonate = "true" />
<authorization>
<allow users="*" />
</authorization>
<authentication mode="Windows" />
if i run the application i will get " Reqired registry access not allowed"
when i check identity account through "Envirnoment.UserName" i will see the
above account and even with "Windowsidentity.GetCurrent().name"
Even I gave explicitly full control permissions to above account in
following registrys
1)HKEY_LOCAL_MACHINE\SOFTWARE\MICROSFT\WINDOWSNT\CURRENTVERSION\Perflib
2) HKEY_LOCAL_MACHINE\SYSTEM\Controlset001\Service as well as ControlSet002
can anybody help me as it is due to move to my technical center
Regards
Ram