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




I am trying to write to the event log from my 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
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
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?



Bruce Barker

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

-- bruce (

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