Loading

Enterprise library Error Failed to create instances

ISSUE
=====

When running a .net 1.1 (VS 2003) application which uses Enterprise Library you recieve the following error, however the application still works:

Event Type: Error
Event Source: Enterprise Library Instrumentation
Event Category: None
Event ID: 0
Date: �
Time: �
User:  N/A
Computer:�
Description:
Failed to create instances of performance counter ‘Average Command Execution Time’ – The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly..

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

RESOLUTION
==========

Download the following installservices.zip
extract to c:program filesmicrosoft enterprise librarybininstallservices.bat
from the command prompt execute c:program filesmicrosoft enterprise librarybininstallservices.bat

Make sure the following are listed as a performance counter

Then run your application, the errors should now disappear

Leave a Reply

Your email address will not be published. Required fields are marked *