TomDa
asked on
Access Denied Writing to Eventlog
I am working in C# MOSS application.
On the read/write site where users have to log in, and when an error occurs, I am able to log the error to a custom eventlog source.
But on the read only site when Anonymous user access the site and an error occurs, the error is not logged to the eventlog source.
Rather, an error occurs (Access denied writing to the Eventlog).
I added autheticated users to the Eventlog source in my Windows 2003 SP2 registry. But I'm still getting access denied when Anonymous users access the read onyl site and an error occurs.
I also looked into Adjusting "managing auditing and security logs" by adding Anonymous users but still getting same error.
Any help would be greatly appreciated.
Tom
On the read/write site where users have to log in, and when an error occurs, I am able to log the error to a custom eventlog source.
But on the read only site when Anonymous user access the site and an error occurs, the error is not logged to the eventlog source.
Rather, an error occurs (Access denied writing to the Eventlog).
I added autheticated users to the Eventlog source in my Windows 2003 SP2 registry. But I'm still getting access denied when Anonymous users access the read onyl site and an error occurs.
I also looked into Adjusting "managing auditing and security logs" by adding Anonymous users but still getting same error.
Any help would be greatly appreciated.
Tom
ASKER
The article sounds like the right article but when I click on any of the article's links, the cooresponding pages are either in Chinese or the article is broken, very strange. See for yourself. Click one of the links and see if you get a weird page with no content.
That is weird. This article from MS will give you what you need.
http://support.microsoft.com/kb/323076
http://support.microsoft.com/kb/323076
ASKER
I found this article just before you sent it to me.
That said, I backed up my registry and then changed my registy entry to allow Anonymous Access read write and clear privledges by changing the default key
from
O:BAG:SYD:(D;;0xf0007;;;AN )(D;;0xf00 07;;;BG)(A ;;0xf0007; ;;SY)(A;;0 x7;;;BA)(A ;;0x7;;;SO )(A;;0x3;; ;IU)(A;;0x 3;;;SU)(A; ;0x3;;;S-1 -5-3)(A;;0 x1;;;AU)
to this...
O:BAG:SYD:(A;;0xf0007;;;AN )(D;;0xf00 07;;;BG)(A ;;0xf0007; ;;SY)(A;;0 x7;;;BA)(A ;;0x7;;;SO )(A;;0x3;; ;IU)(A;;0x 3;;;SU)(A; ;0x3;;;S-1 -5-3)(A;;0 x1;;;AU)
I then did an iisreset
And I still have the same problem.
Any other suggesstions.
Also fo note, when I break into the code the value of user is null but the error says that my app pool user does not have access. yet he is a member of the local Administrator group.
Any other ideas would be appreciated?
Tom
That said, I backed up my registry and then changed my registy entry to allow Anonymous Access read write and clear privledges by changing the default key
from
O:BAG:SYD:(D;;0xf0007;;;AN
to this...
O:BAG:SYD:(A;;0xf0007;;;AN
I then did an iisreset
And I still have the same problem.
Any other suggesstions.
Also fo note, when I break into the code the value of user is null but the error says that my app pool user does not have access. yet he is a member of the local Administrator group.
Any other ideas would be appreciated?
Tom
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Still not luck.
Any other ideas?
Tom
Any other ideas?
Tom
http://www.flimflan.com/blog/permissionsonthewindows2003servereventlog.aspx