FIX: The performance counters that monitor an application stop responding when the application exits and restarts and you receive the System.InvalidOperationException exception on a computer that is running .NET Framework 2.0

Article translations Article translations
Article ID: 971601 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

You add performance counters to monitor an application on a computer that is running the Microsoft .NET Framework 2.0. The application exits and then restarts. However, the values in the performance counters do not change and you receive a System.InvalidOperationException exception together with the following exception error message:
Instance '< Instance name of the performance counter>' already exists with a lifetime of Process. It cannot be recreated or reused until it has been removed or until the process using it has exited.

CAUSE

This problem occurs because the handles are not cleaned up after the process that owns the performance counters exits. Then, the Common Language Runtime (CLR) throws the exception described in the symptoms section.

RESOLUTION

Hotfix Replacement Information

The hotfix that corresponds to KB971601 has been superseded with the hotfix KB981574, which contains all fixes that were previously included in KB971601. You should use the hotfix KB981574 to fix the issues described in KB971601. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
981574 The splash screen stays open longer than usual when you try to start Excel on a computer that has the .NET Framework 3.5 SP1 installed

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Properties

Article ID: 971601 - Last Review: August 4, 2010 - Revision: 4.0
APPLIES TO
  • Microsoft .NET Framework 2.0 Service Pack 2
Keywords: 
kbHotfixServer kbexpertiseadvanced kbqfe kbsurveynew KB971601

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com