Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
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 Resposta
0
Is this a Windows event log?