R
Ron
I have an asp.net 3.5 app and I would like to write to the event log.
I went through the registry and assigned permissions for my account, wrote a
little bit of code in a small desktop application to create the log file:
sToAdd = "NewLog"
If Not EventLog.SourceExists(stoadd) Then
EventLog.CreateEventSource(sToAdd, sToAdd)
The new log entry does show up in the registry.
I then try to make an entry from an asp.net:
Log.WriteEntry(Message, LogType)
LogType and sToAdd are the same string. The add function does not throw an
error.
When I go to Vistas event log viewer, the new log is in the Event Viewer
under the Applications and Services Logs.
However, when I click on the log, I get the following: Event Viewer cannot
open the event log or custom view. Verify that Event Log service is running.
Access is denied (5).
I an in the administrator's group and I can read all of the other logs. I
checked the registry and I have full control of that registry item.
Suggestions are definately welcome.
I went through the registry and assigned permissions for my account, wrote a
little bit of code in a small desktop application to create the log file:
sToAdd = "NewLog"
If Not EventLog.SourceExists(stoadd) Then
EventLog.CreateEventSource(sToAdd, sToAdd)
The new log entry does show up in the registry.
I then try to make an entry from an asp.net:
Log.WriteEntry(Message, LogType)
LogType and sToAdd are the same string. The add function does not throw an
error.
When I go to Vistas event log viewer, the new log is in the Event Viewer
under the Applications and Services Logs.
However, when I click on the log, I get the following: Event Viewer cannot
open the event log or custom view. Verify that Event Log service is running.
Access is denied (5).
I an in the administrator's group and I can read all of the other logs. I
checked the registry and I have full control of that registry item.
Suggestions are definately welcome.