RE: .NET 1.1 created event log has only "Not available" properties
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Thu, 13 Apr 2006 03:31:36 GMT
Hi Tim,
Thank you for posting.
From your description, I understanding you're using the EventLog class towrite entries into custom eventlog in .net 1.1 application. However, after
wrting the log correctly, you found that you can not view the custom log's
properties(size, modified...) in computer management console, correct?
Based on my local test, the custom log created or write through the
EventLog class should populated the specific properties correctly. So I
think it is likely a machine specific issue. Have you tried the application
or a very simple evetlog writing code snippet as below on some other
machines:
=================
private void button1_Click(object sender, System.EventArgs e)
{
if(!EventLog.SourceExists("MySource"))
{
EventLog.CreateEventSource("MySource", "MyNewLog1");
Console.WriteLine("CreatingEventSource");
}
// Create an EventLog instance and assign its source.
EventLog myLog = new EventLog();
myLog.Source = "MySource";
// Write an informational entry to the event log.
myLog.WriteEntry("Writing to event log.");
}
============
Or does it work if first create the customlog externally and then use
eventlog class to write into it?
Please feel free to post here if there is anything I missed.
Regards,
Steven Cheng
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
.
- Follow-Ups:
- Prev by Date: Re: Clipboard.GetData is always returning null
- Next by Date: Re: what permissions does a windows service need to execute another process? System.Diagnostics.Process process = System.Diagnostics.Process.Start(info); just local administrator? any specific permitions?
- Previous by thread: Clipboard.GetData is always returning null
- Next by thread: RE: .NET 1.1 created event log has only "Not available" properties
- Index(es):