enterprise library logging creates errors

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JV

    enterprise library logging creates errors

    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

    #2
    Re: enterprise library logging creates errors


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


    In article <ee6n#Dw3FHA.38 76@TK2MSFTNGP09 .phx.gbl>,
    johnNOSPAMme@go isc.com says...[color=blue]
    > 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..
    >
    >
    >[/color]

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

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

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

    Comment

    • JV

      #3
      Re: enterprise library logging creates errors

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

      "Tapio Kulmala" <tapsakoo@hotma il.com> wrote >[color=blue]
      > Did you run the "Install Services" script from the Enterprise Library
      > folder on the Start Menu ?
      >[/color]


      Comment

      • Tapio Kulmala

        #4
        Re: enterprise library logging creates errors

        Yes.

        Don't ask why.



        In article <uoRuRg73FHA.34 60@TK2MSFTNGP12 .phx.gbl>,
        johnNOSPAMme@go isc.com says...[color=blue]
        > To be honest, I don't recall. Is this something that would be necessary to
        > deploy on servers where the logging is being used?
        >[/color]

        Comment

        • JV

          #5
          Re: enterprise library logging creates errors

          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.


          Comment

          Working...