August 7, 2008 at 3:26 PM
If you are getting the message in your asp.net web application with Microsoft Enterprise Library installed:
The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
this means that the category of the performance counter, that your application is trying to use is not registered. Try to find that assembly, that has the installer and using InstallUnit from .Net framework, execute the installer with the following command:
InstallUtil.exe /i YourAssemblyName.dll
In addition, if something went wrong during the installation of Enterprise Library, execute C:\Program Files\<Microsoft Enterprise Library dir>\InstallServices.bat