event log

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i am trying to create and write to an event log when i do i get this error
what does it mean
The description for Event ID ( 0 ) in Source ( VersionTracking ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. The following
information is part of the event: Service started successfully..
 
Sounds like you havent registered the event source

for example:

Dim evtMain As New EventLog
If Not EventLog.SourceExists("MyAppSource") Then
EventLog.CreateEventSource("MyAppSource", "MyApp")
End If
evtMain.Source = "MyAppSource"
evtMain.Log = "MyApp"
 

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

Back
Top