Wednesday, November 26, 2003


How to fix problem with access to application log from ASP.NET

If you get error:
"Requested registry access is not allowed"
during "EventLog.WriteEntry" operation, then do this:
1) Create win application which will create Event Source for application log:
You can use "CreateLogSource" winapplication which I already created (2003-11-26).
2) You should have Administrator's privileges on the computer which will be used as Web Server (your ASP.NET code will log into Application log of this computer).
3) Execute "EventLog.CreateEventSource" with SpecificSource.
4) Your Web-application should use only this SpecificSource source for "EventLog.WriteEntry" operation.

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?