You receive a "The remote procedure call failed" error message when you upgrade a Visual Basic 6.0 project to Visual Studio .NET 2003 or Visual Studio 2005 on Windows Server 2003 SP1 or on Windows XP SP2

Article translations Article translations
Article ID: 896292 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

When you use a wizard to upgrade a Microsoft Visual Basic 6.0 project to Microsoft Visual Basic .NET or Microsoft Visual Basic 2005 in Microsoft Visual Studio .NET 2003 or Microsoft Visual Studio 2005, the upgrade fails. When this behavior occurs, you receive an error message that is similar to the following:
Unexpected exception occurred during upgrade engine operation: The remote procedure call failed.

CAUSE

This behavior occurs because the VBU.exe tool has compatibility issues with the Data Execution Prevention (DEP) option.

Note The VBU.exe tool starts when you upgrade the Visual Basic 6.0 project by using the Visual Basic Upgrade Wizard in the Microsoft Visual Studio .NET IDE.

WORKAROUND

To work around this behavior, add the VBU.exe tool to the DEP exclusion list. To do this, follow these steps:
  1. Click Start, click Control Panel, and then double-click System. The System Properties dialog box appears.
  2. Click the Advanced tab, and then click Settings under Performance. The Performance Options dialog box appears.
  3. Click the Data Execution Prevention tab. Verify that the Turn on DEP for all programs and services except those I select option is selected

    Note By default, the Turn on DEP for all programs and services except those I select option is selected in Microsoft Windows Server 2003 Service Pack 1 (SP1).
  4. Click Add. Locate and then click to select VBU.exe. Click Open.
  5. In the warning box, click OK. VBU.exe now appears in the DEP program area.
  6. Click Apply, and then click OK. A dialog box appears that states that you must restart the computer for the setting to take effect. Click OK.

MORE INFORMATION

Steps to reproduce the behavior

  1. Install Windows Server 2003 SP1 on a computer that supports the no-execute (NX) page-protection feature. For example, install Windows Server 2003 SP1 on an AMD64-based computer or on an IA-64-based computer.
  2. Install Visual Studio .NET 2003 or Visual Studio 2005.
  3. Make sure that the Turn on DEP for all programs and services except those I select option is selected on the Data Execution Prevention tab as described in the "Workaround" section.
  4. Try to upgrade a Visual Basic 6.0 project by opening the project in Visual Studio .NET 2003 or Visual Studio 2005.

Properties

Article ID: 896292 - Last Review: December 6, 2006 - Revision: 2.5
APPLIES TO
  • Microsoft Visual Basic 2005
  • Microsoft Visual Basic .NET 2003 Standard Edition, when used with:
    • Microsoft Windows Server 2003 Service Pack 1
    • Microsoft Windows XP Professional SP2
Keywords: 
kbvs2005swept kbvs2005applies kbtshoot kberrmsg kbprb KB896292

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com