473,404 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

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.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
1 7330
PsychoCoder
465 Expert Mod 256MB
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

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

Similar topics

0
by: Krishnamoorthy | last post by:
have a website which is running under asp. I have created a folder and declared as Virtual directory from webspace provider. Now i placed files which are generated at a time of creating new...
1
by: Max | last post by:
I'm trying to get the process id of some application and I get an error for this line: Process myApplications= Process.GetProcessesByName("MyApplication"); The error says: ...
8
by: pmud | last post by:
Hi, I am using a compare validator in asp.net application(c# code). This Custom validator is used for comparing a value enterd by the user against the primary key in the SQL database. IF the...
0
by: Drushti Avarani via .NET 247 | last post by:
(Type your message here) Hi All, Probably I am posting the message under wrong heading i.einstead of ...languages.vb ,it should be ...languages.C#. I havemade a project in C# language using VS.NET...
0
by: Salvador | last post by:
Hi, I have created a service, which installer installs 5 performance counters as well. Then the service instances these counters and interact with them. If I check the event viewer I receive...
0
by: supreeth.bhat | last post by:
I created a new Performance Counter Category and added three new counters. Used InstallUtil.exe to create them on remote production server. I can see the custom counter category and counters. ...
1
by: jvn | last post by:
I am experiencing a particular problem with performance counters. I have created a set of classes, that uses System.Diagnostics.PerformanceCounter to increment custom performance counters (using...
1
by: JSha | last post by:
Hello, The application I am using works on most machines except one where in it throws the following exception... Error: Process Performance Counter is Disabled, so requested operation cannot...
0
by: JSha | last post by:
Hello, The application I am using works on most machines except one where in it throws the following exception... Error: Process Performance Counter is Disabled, so requested operation cannot...
6
by: sony.m.2007 | last post by:
Hi, I'm using VSTS2008. I tried to create a performance counter as below. A simple example of monitoring processor usage (similar to what's seen in task manager): Code Snippet
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.