enterprise library logging creates errors

  • Thread starter Thread starter JV
  • Start date Start date
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..
 
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
****************************************************************
 
To be honest, I don't recall. Is this something that would be necessary to
deploy on servers where the logging is being used?
 
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.
 
Back
Top