How can I fix this event log error?
I keep getting the following event log descriptions for "svcListener" and "svcListener - Prof" in my event log. Does anyone know where and how can I fix this?
svcListener
Cannot find a description for event ID (0) in source (svcListener). The local computer may not display the required registry information or message DLL files to display messages from a remote computer. You can use the / AUXSOURCE = flag to get this description; see Help and Support. The following information is part of the event: Unable to perform this operation on a closed dataset.
svcListener - Prof
Unable to find description for event identifier (0) in source (svcListener-Prof). The local computer may not display the required registry information or message DLL files to display messages from a remote computer. You can use the / AUXSOURCE = flag to get this description; see Help and Support. The following information is part of an event: Oracle Connection Exception-12560 EOracleEr
a source to share
It looks like svcListener and svcListener-Prof are trying to write to the event log using an event source that doesn't exist. (or they don't have permission to create it)
In your code, you should do something like this before writing to the event log:
if(!EventLog.SourceExists("myService")){EventLog.CreateEventSource("myService","Application");}
And you have to make sure that the first time the "svcListener" was started, it had the permissions required to create the event source.
To fix this, you can create a source yourself. Just write a short program to do it like above and only run it once from an administrator account.
a source to share