security error when I try to access the event log from my asp.net app.

  • Thread starter Thread starter Kay
  • Start date Start date
K

Kay

Hello,

I am trying to write to the event log from my asp.net application but I get
a System.Security.SecurityException exception with the message "Requested
registry access is not allowed." String


I have followed the suggested solution which is

1. Launch RegEdit
2. Navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\
3. Right click on EventLog select Permissions
4. Click the Add button and write ASPNET.
5. Click OK.
6. Select the newly added user from the list (ASP.NET Machine User by
default).
7. Click on Full Control in the Allow column.
8. Click OK.

then restart IIS

after doing all this I still got the error.

Does anyone have a solution that would work?



Thanks,

Kay
 
if your page uses impersonation, you will need to add those users also.

-- bruce (sqlwork.com)
 
Back
Top