enterprise library logging creates errors

J

JV

I added enterprise library logging to an application using a custom event
log. It works but it generates error entries in the Application log as
well. Apparently it's trying to create some sort of counters and failing.
I have so far found nothing to explain this.

Error examples:

Failed to create instances of performance counter 'Client: # of Logs
Written/Sec' - The requested Performance Counter is not a custom counter, it
has to be initialized as ReadOnly..

Failed to create instances of performance counter 'Distributor: # of Logs
Distributed/Sec' - The requested Performance Counter is not a custom
counter, it has to be initialized as ReadOnly..

Failed to create instances of performance counter '# of Exceptions
Handled/Sec' - The requested Performance Counter is not a custom counter, it
has to be initialized as ReadOnly..
 
T

Tapio Kulmala

Did you run the "Install Services" script from the Enterprise Library
folder on the Start Menu ?


I added enterprise library logging to an application using a custom event
log. It works but it generates error entries in the Application log as
well. Apparently it's trying to create some sort of counters and failing.
I have so far found nothing to explain this.

Error examples:

Failed to create instances of performance counter 'Client: # of Logs
Written/Sec' - The requested Performance Counter is not a custom counter, it
has to be initialized as ReadOnly..

Failed to create instances of performance counter 'Distributor: # of Logs
Distributed/Sec' - The requested Performance Counter is not a custom
counter, it has to be initialized as ReadOnly..

Failed to create instances of performance counter '# of Exceptions
Handled/Sec' - The requested Performance Counter is not a custom counter, it
has to be initialized as ReadOnly..

--
****************************************************************
Tapio Kulmala

"Those are my principles. If you don't like them I have others."

- Groucho Marx
****************************************************************
 
J

JV

To be honest, I don't recall. Is this something that would be necessary to
deploy on servers where the logging is being used?
 
J

JV

Thanks for pointing this out. I'm annoyed that I got this far down the road
without the EL documentation clearly stating that this step would be needed
just to do simple logging to the Event Log. I could have written something
simpler and lower overhead.

I probably will yank the enterprise library after all, since running this
BAT file did not fix the problem we are having.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top