0
C# event log
Hi guys Iâm trying to write a simple event log but i confront with âSystem.Security.SecurityException: The source was not found...â and i searched a lot but couldnât find an efficient solution, I really really appreciate if someone help me with that đđœ I know that the source needed to be created and the key must be registered but what is the key and How should i do that? String source =âDemoTestApplicationâ; String log = âDemoEventLogâ; EventLog demolog=new EventLog(log); demolog.Source=source; demolog.writeEntry(âThis is the first message to the logâ,EventLogEntryType.Information);
1 RĂ©ponse
0
Is this a Windows event log?