gareth asked this 4 years ago

Permission to read all event logs - Inaccessible logs: Security

I have VB.NET application that is throwing this error after i installed it on a new computer. 

The source was not found, but some or all event logs could not be searched. To create the source, ou need permission to read to all event logs to make sure that new source name is unique. Inaccessible logs: security

What do i need to do  "give permission to read all event logs" or simply put how can i get rid of this error?

I dont have this error in my dev environment.

Please help.

Best Answer by Jake 3 years ago

If you are creating a new event source using EventLog.CreateEventSource method you must be logged in as a user with administrative privileges. After the event source is created you can continue to run the program as a normal user. So just need to run the application once as a administrator.