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

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
 
B

Bruce Barker

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

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top