PRB: "The Namespace ISystemDebugEventFireAuto Is Not Found" Error Message (316252)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2002), Academic Edition

This article was previously published under Q316252

SYMPTOMS

When you try to declare a variable of type ISystemDebugEventFireAuto.VSAnalyzerRuntimeVariablesObjectClass in a managed code module, you receive the following build error message:
"The namespace ISystemDebugEventFireAuto is not found."

CAUSE

This behavior occurs because the Automation-type Inprocess Event Collector (IEC) does not expose VSAnalyserRuntimeVariablesObjectClass, which is used to read the value of runtime variables from managed code.

STATUS

This behavior is by design.

MORE INFORMATION

Visual Studio Analyzer offers two IEC objects that permit logging of the values of runtime variables in a target process.

One IEC, ISystemDebugEventFire, inherits from IUnknown so that it is available through straight COM interfaces. ISystemDebugEventFire is intended for use in C++ applications.

The other object, the ISystemDebugEventFireAuto interface, inherits from IDispatch, so that the object is available through Automation. It is this Automation-type IEC that cannot return runtime variables from managed code.

Steps to Reproduce the Behavior

To reproduce the behavior, follow these steps:
  1. In Visual Studio .NET, create a new C# Windows project.
  2. Add a button.
  3. Right-click References.
  4. Click Add Reference.
  5. Click the COM tab, and then scroll down to Microsoft Visual Studio Analyzer 2002 Automatable Event Source Installer Type Library.
  6. Click this item, and then click OK.
  7. Add the following line of code to the button Click event:
    ISystemDebugEventFire.VSAnalyzerRuntimeVariablesObjectClass MyIEC;
    					
  8. Build the project.

    You receive the following error message:
    "The type or namespace name 'ISystemDebugEventFireAuto' could not be found (are you missing a using directive or an assembly reference?)"

Modification Type:MajorLast Reviewed:5/17/2002
Keywords:kbprb KB316252