Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Debugging ASP.NET application at run-time
Message
De
16/01/2009 13:42:31
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01374333
Message ID:
01374444
Vues:
9
>>
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform