Microsoft KB Archive/318512

= BUG: &quot;Call rejected by callee&quot; error message when you run Visual Studio Analyzer =

Article ID: 318512

Article Last Modified on 2/3/2006

-

APPLIES TO


 * Microsoft .NET Framework 1.1
 * Microsoft .NET Framework 1.0
 * Microsoft Visual Studio .NET 2003 Professional Edition
 * Microsoft Visual Studio .NET 2003 Enterprise Architect
 * Microsoft Visual Studio .NET 2003 Enterprise Developer
 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer

-



This article was previously published under Q318512



SYMPTOMS
When you build the AutomationVB sample or the AutomationVC sample in a Visual Studio Analyzer project, and then you run the executable file from the command line, you may receive the following error message:

&quot;Call was rejected by callee&quot; error (HRESULT 0x80010001)



RESOLUTION
To resolve this problem, close the Properties window of the project, and then run the AutomationVB.exe file or the AutomationVC.exe file from the command line. To do this, follow these steps:  Build the automation sample:  Start Visual Studio .NET. On the File menu, point to Open, and then click Project. In the Open Project dialog box, locate the following folder:

\Program Files\Microsoft Visual Studio .NET\Visual Studio SDKs\Visual Studio Analyzer SDK\AutomationVB

 Click the AutomationVB.vbproj project file, and then click Open. In Solution Explorer, right-click References, and then click Add reference. Under COM Components, click Microsoft Visual Studio Analyzer 2002 Automation Model Type Library, and then click Select.</li> Click OK.</li> On the Build menu, click Build.</li></ol> </li> Run the automation sample: <ol style="list-style-type: lower-alpha;"> Click Start, and then click Run.</li> In the Open text box, type cmd, and then click OK.</li> To run the AutomationVB.exe file from the command prompt, locate the following folder:

\Program Files\Microsoft Visual Studio .NET\Visual Studio SDKs\Visual Studio Analyzer SDK\AutomationVB\bin

</li> Type AutomationVB.exe .</li> Click Launch Analyzer to start an instance of the Visual Studio .NET IDE, and then wait for the development environment to create the Visual Studio Analyzer project.</li> In the AutomationVB application, click Start Recording. In the Visual Studio .NET IDE, the Recording dialog box appears and event recording begins.</li> In the AutomationVB application, click Stop Recording. The AutomationVB application parses the event log to determine which of the collected events had the longest duration. This operation may take several seconds. After the application completes the calculation, the results appear in the Recording Summary dialog box.</li> Click Exit Analyzer.</li></ol> </li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

<div class="moreinformation_section">

MORE INFORMATION
The Visual Studio Analyzer Automation sample uses the Visual Studio Analyzer Automation library to create a Visual Studio Analyzer project in the folder that is referenced by your computer's TEMP environment variable.

After you build the sample, run it. When you click the buttons in the application in the order that they appear, the application does the following:
 * 1) Starts Visual Studio .NET, then and creates a new Visual Studio Analyzer project. The project contains one filter and one event log. The project connects to the local computer.
 * 2) Starts recording events until you click the button to stop recording.
 * 3) Scans the recorded events to locate the event that has the longest duration, and then displays the information for that event.
 * 4) Saves the project, and then quits Visual Studio .NET.

Steps to Reproduce the Behavior
<ol> Build the automation sample. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Start Visual Studio .NET.</li> On the File menu, point to Open, and then click Project.</li> In the Open Project dialog box, locate the following folder:

\Program Files\Microsoft Visual Studio .NET\Visual Studio SDKs\Visual Studio Analyzer SDK\AutomationVB

</li> <li>Click the AutomationVB.vbproj project file, and then click Open.</li> <li>In Solution Explorer, right-click References, and then click Add reference.</li> <li>Under COM Components, click Microsoft Visual Studio Analyzer 2002 Automation Model Type Library, and then click Select.</li> <li>Click OK.</li> <li>On the Build menu, click Build.</li> <li>In Solution Explorer, right-click AutomationVB, and then click Properties.</li></ol> </li> <li>Run the automation sample. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Click Start, and then click Run.</li> <li>In the Open text box, type cmd, and then click OK.</li> <li>To run the AutomationVB.exe file from the command prompt, locate the following folder:

\Program Files\Microsoft Visual Studio .NET\Visual Studio SDKs\Visual Studio Analyzer SDK\AutomationVB\bin

</li> <li>Type AutomationVB.exe .</li> <li>Click Launch Analyzer to start an instance of the Visual Studio .NET IDE, and then wait for the development environment to create the Visual Studio Analyzer project.</li> <li>In the AutomationVB application, click Start Recording.</li></ol> </li></ol>

<div class="references_section">