469,646 Members | 1,567 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,646 developers. It's quick & easy.

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

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\Servic es\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
Jan 11 '06 #1
1 965
if your page uses impersonation, you will need to add those users also.

-- bruce (sqlwork.com)

"Kay" <ka********@proteus.ie> wrote in message
news:Oy**************@TK2MSFTNGP10.phx.gbl...
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\Servic es\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

Jan 11 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

116 posts views Thread by Mike MacSween | last post: by
reply views Thread by AndyAFCW | last post: by
29 posts views Thread by Patrick | last post: by
2 posts views Thread by Chris Bazalgette | last post: by
1 post views Thread by Bala | last post: by
6 posts views Thread by Jonathan Crawford | last post: by
2 posts views Thread by rbanerji | last post: by
5 posts views Thread by Henry Stock | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.