Click here to Skip to main content
15,890,995 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello,

I tried to create an event log, write to it and read from it.

But I keep getting the error message "The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security."

What can I do?
Any help please.
Thanks.
Posted
Updated 21-Feb-12 4:31am
v2
Comments
OriginalGriff 21-Feb-12 9:30am    
How did you try? What did you do?
Use the "Improve question" widget to edit your question and provide better information.
ZurdoDev 21-Feb-12 10:17am    
Provide some source code. It may just be a permissions issue with the account you are running as.
Martin Arapovic 21-Feb-12 11:16am    
Yes, maybe its is the security issue, but maybe your EventLog Source does not exists... Check if event log source exists before writing EventLog. Use EventLog.SourceExists("YourSource") method to check if your source exists. If it does then just write else create a new with desired name...
Mohammad A Rahman 21-Feb-12 19:29pm    
Good advice.

1 solution

Event Log using C#[^]

Hope it helps :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900