Vista Event Logs

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.
 

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

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top