PRB: No Object Statistics Appear in Component Services Snap-in (312367)



The information in this article applies to:

  • Microsoft .NET Framework SDK 1.1
  • Microsoft .NET Framework SDK 1.0
  • Microsoft .NET Framework Class Libraries 1.0

This article was previously published under Q312367

SYMPTOMS

When you look at the object statistics for a serviced component in the Component Services Microsoft Management Console (MMC) snap-in, no numbers or statistics appear under Objects, Activated, Pooled, In call and Call-time.

CAUSE

These events are not available by default.

RESOLUTION

To resolve this problem, set the EventTrackingEnabled attribute to True in your code. To do this, add the following code before your class declaration:
[EventTrackingEnabled(true)]
				
Alternatively, you can follow these steps to resolve this problem:
  1. Open the Component Services MMC snap-in.
  2. Locate your component, right-click the component, and then click Properties.
  3. On the Activation tab, select the Component supports events and statistics check box.

STATUS

This behavior is by design.

Modification Type:MajorLast Reviewed:4/8/2003
Keywords:kbprb kbSysAdmin KB312367