WriteEntry to Event Log Fails
- From: "TJO" <TimothyOdell@xxxxxxxxx>
- Date: 8 Sep 2005 17:42:04 -0700
I am creating an EventLog and attempting to write to it using the
following code. The problem is when I inspect the log there in no
entry? Can anyone see what I am doing wrong here?
if (!System.Diagnostics.EventLog.SourceExists("SmartMI"))
{
System.Diagnostics.EventLog.CreateEventSource(
"SmartMI", "SmartMILog");
}
EventLog EventLog1 = new
EventLog("SmartMILog",System.Environment.MachineName, "SmartMI");
string msg = "Foo Bar";
EventLog1.WriteEntry(msg);
.
- Prev by Date: Re: HyperLink Column - Data Binding?
- Next by Date: Re: Controls inside EditTemplate cause editing to end
- Previous by thread: Graphical controls for ASP.NET
- Next by thread: Re: WriteEntry to Event Log Fails
- Index(es):