Microsoft KB Archive/316252

= PRB: &quot;The Namespace ISystemDebugEventFireAuto Is Not Found&quot; Error Message =

Article ID: 316252

Article Last Modified on 5/17/2002

-

APPLIES TO


 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * 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:

&quot;The namespace ISystemDebugEventFireAuto is not found.&quot;



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:  In Visual Studio .NET, create a new C# Windows project. Add a button. Right-click References. Click Add Reference. Click the COM tab, and then scroll down to Microsoft Visual Studio Analyzer 2002 Automatable Event Source Installer Type Library. Click this item, and then click OK.</li>  Add the following line of code to the button Click event: ISystemDebugEventFire.VSAnalyzerRuntimeVariablesObjectClass MyIEC; </li> Build the project.

You receive the following error message:

&quot;The type or namespace name 'ISystemDebugEventFireAuto' could not be found (are you missing a using directive or an assembly reference?)&quot;

</li></ol>

Keywords: kbprb KB316252

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.