BUG: "Call rejected by callee" error message when you run Visual Studio Analyzer (318512)



The information in this article 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 Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition

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:
"Call was rejected by callee" 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:
  1. Build the automation sample:
    1. Start Visual Studio .NET.
    2. On the File menu, point to Open, and then click Project.
    3. In the Open Project dialog box, locate the following folder:

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

    4. Click the AutomationVB.vbproj project file, and then click Open.
    5. In Solution Explorer, right-click References, and then click Add reference.
    6. Under COM Components, click Microsoft Visual Studio Analyzer 2002 Automation Model Type Library, and then click Select.
    7. Click OK.
    8. On the Build menu, click Build.
  2. Run the automation sample:
    1. Click Start, and then click Run.
    2. In the Open text box, type cmd, and then click OK.
    3. 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

    4. Type AutomationVB.exe.
    5. 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.
    6. In the AutomationVB application, click Start Recording. In the Visual Studio .NET IDE, the Recording dialog box appears and event recording begins.
    7. 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.
    8. Click Exit Analyzer.

STATUS

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

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

  1. Build the automation sample. To do this, follow these steps:
    1. Start Visual Studio .NET.
    2. On the File menu, point to Open, and then click Project.
    3. In the Open Project dialog box, locate the following folder:

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

    4. Click the AutomationVB.vbproj project file, and then click Open.
    5. In Solution Explorer, right-click References, and then click Add reference.
    6. Under COM Components, click Microsoft Visual Studio Analyzer 2002 Automation Model Type Library, and then click Select.
    7. Click OK.
    8. On the Build menu, click Build.
    9. In Solution Explorer, right-click AutomationVB, and then click Properties.
  2. Run the automation sample. To do this, follow these steps:
    1. Click Start, and then click Run.
    2. In the Open text box, type cmd, and then click OK.
    3. 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

    4. Type AutomationVB.exe.
    5. 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.
    6. In the AutomationVB application, click Start Recording.

REFERENCES

For more information, visit the following Microsoft Web site:

Modification Type:MinorLast Reviewed:2/3/2006
Keywords:kbvs2005doesnotapply kbvs2005swept kbtshoot kbvs2002sp1sweep kberrmsg kbpending kbPerformance kbAutomation kbbug KB318512 kbAudDeveloper