Server Error in '/' Application.Requested Performance Counter is not a custom counter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • santoshsri
    New Member
    • Jan 2007
    • 48

    Server Error in '/' Application.Requested Performance Counter is not a custom counter

    Hello,

    I have web application running since years without any issues. Recently we started facing weird errors we have no clue about .. Can some tell what could be wrong ? It's on IIS6 on .net framwork 1.1..

    Appreciate your help. Thanks

    Stack Trace -----





    Server Error in '/CHOICEPOINT.WEB APP' Application.
    --------------------------------------------------------------------------------

    The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the

    stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidO perationExcepti on: The requested Performance Counter is not a custom counter, it

    has to be initialized as ReadOnly.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the

    origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:


    [InvalidOperatio nException: The requested Performance Counter is not a custom counter, it has to be initialized as

    ReadOnly.]
    System.Diagnost ics.Performance Counter.Initial ize() +571
    System.Diagnost ics.Performance Counter..ctor(S tring categoryName, String counterName, String instanceName,

    Boolean readOnly) +127
    Microsoft.Enter priseInstrument ation.EventSour ceCounters..cct or() +83

    [TypeInitializat ionException: The type initializer for "EventSourceCou nters" threw an exception.]
    Microsoft.Enter priseInstrument ation.EventSour ceCounters..cto r(String eventSourceName , String

    eventSourceFull Name, Boolean isRequestEventS ource) +0
    Microsoft.Enter priseInstrument ation.EventSour ce..ctor(String name, String description, Boolean checkName) +495
    Microsoft.Enter priseInstrument ation.EventSour ce..cctor() +159

    [TypeInitializat ionException: The type initializer for "Microsoft.Ente rpriseInstrumen tation.EventSou rce" threw an

    exception.]
    Microsoft.Enter priseInstrument ation.EventSour ce.Finalize() +0

    [TypeInitializat ionException: The type initializer for "ChoicePoint.Se rvices.Security .SecurityManage r" threw an

    exception.]
    ChoicePoint.Ser vices.Security. SecurityManager ..ctor() +0
    ChoicePoint.Web App.Global.Appl ication_Authent icateRequest(Ob ject sender, EventArgs e)
    System.Web.Sync EventExecutionS tep.System.Web. HttpApplication +IExecutionStep .Execute() +60
    System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean& completedSynchr onously) +87




    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.1.432 2.2494; ASP.NET Version:1.1.432 2.2494
  • PsychoCoder
    Recognized Expert Contributor
    • Jul 2010
    • 465

    #2
    This is normally due to the performance counter (or category) not existing, but with a terrible error message.

    Take a look in perfmon for the counter, it should be missing on the relevant machines.

    I find this happens to the .Net perf counters sometimes (no idea why) but using lodctr gets them back.

    Comment

    Working...