By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,619 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

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

P: 48
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.WEBAPP' 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.InvalidOperationException: 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:


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

ReadOnly.]
System.Diagnostics.PerformanceCounter.Initialize() +571
System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName,

Boolean readOnly) +127
Microsoft.EnterpriseInstrumentation.EventSourceCou nters..cctor() +83

[TypeInitializationException: The type initializer for "EventSourceCounters" threw an exception.]
Microsoft.EnterpriseInstrumentation.EventSourceCou nters..ctor(String eventSourceName, String

eventSourceFullName, Boolean isRequestEventSource) +0
Microsoft.EnterpriseInstrumentation.EventSource..c tor(String name, String description, Boolean checkName) +495
Microsoft.EnterpriseInstrumentation.EventSource..c ctor() +159

[TypeInitializationException: The type initializer for "Microsoft.EnterpriseInstrumentation.EventSour ce" threw an

exception.]
Microsoft.EnterpriseInstrumentation.EventSource.Fi nalize() +0

[TypeInitializationException: The type initializer for "ChoicePoint.Services.Security.SecurityManager " threw an

exception.]
ChoicePoint.Services.Security.SecurityManager..cto r() +0
ChoicePoint.WebApp.Global.Application_Authenticate Request(Object sender, EventArgs e)
System.Web.SyncEventExecutionStep.System.Web.HttpA pplication+IExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +87




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2494; ASP.NET Version:1.1.4322.2494
Oct 19 '12 #1
Share this Question
Share on Google+
1 Reply


PsychoCoder
Expert Mod 100+
P: 465
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.
Oct 20 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.