Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Debugging ASP.NET application at run-time
Message
From
16/01/2009 13:42:31
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01374333
Message ID:
01374444
Views:
16
>>
>>What is the error?
>
>The top portion:
>
>
>SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.]
>   System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly) +706
>   System.Diagnostics.EventLog.SourceExists(String source, String machineName) +101
>   System.Diagnostics.EventLog.VerifyAndCreateSource(String sourceName, String currentMachineName) +69
>   System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData) +211
>   System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type) +14
>
I implemented logging in my app a couple of years ago. I do not recollect having to Create an event source. However, the EventLog.Source Property documentation implies that you need to call EventLog.CreateEventSource to add your source. See the Remarks section in EventLog.Source Property.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform