Microsoft KB Archive/316189

From BetaArchive Wiki

Article ID: 316189

Article Last Modified on 1/26/2006



APPLIES TO

  • Microsoft Visual Basic .NET 2002 Standard Edition, when used with:
    • Microsoft Windows XP Professional
    • Microsoft Windows 2000 Standard Edition



This article was previously published under Q316189

SYMPTOMS

When you attempt to upgrade a Microsoft Visual Basic 6 project to Visual Basic .NET, and the project contains a UserControl, the Upgrade Wizard may stop responding (hang) or throw an exception.
Specifically, when you perform the upgrade on a Microsoft Windows XP-based computer, the Upgrade Wizard may stop responding. When you upgrade on a Microsoft Windows 2000-based computer, you may receive the following error message:

The exception unknown software exception (0x00000fd) occurred in the application at location 0x20078c3e

NOTE: The Visual Basic .NET Upgrade Wizard is included in Visual Studio .NET Professional.

CAUSE

This behavior can occur if an instance of the UserControl cited on a form has the same name as the project.

RESOLUTION

To resolve this issue, change either the name of the project or the name of the UserControl before you run the Visual Basic Upgrade Wizard.

STATUS

This bug was corrected in Microsoft Visual Basic .NET (2003).

MORE INFORMATION

Although UserControl projects are not supported by the Visual Basic Upgrade Wizard, the wizard should not stop responding or return exceptions when you upgrade a supported project type that contains a UserControl. Rather, the wizard should ignore the control and not make any modifications to the control file.

Steps to Reproduce the Problem

  1. Create a new standard EXE project in Visual Basic 6.
  2. On the Project menu, click Add User Control to add a UserControl to the project.
  3. Make a note of the project name. You can obtain this information by clicking the Project Properties link on the Project menu.
  4. Cite the UserControl on the form.
  5. Set the name of the UserControl equal to the project name noted in step 3. You can do this through the Properties window (press F4 to display this window).
  6. Save the project.
  7. Open the Visual Basic 6 project file in Visual Studio .NET.


The project file should have a .vbp file extension.

  1. Step 7 should start the Visual Basic Upgrade Wizard. Accept all of the defaults.


Note that the wizard stops responding during the upgrade process.


NOTE: You can also start the Visual Basic Upgrade Wizard from the command-line. The wizard is installed to the following directory, by default:

Visual Studio .NET Install Directory\Vb7\VBUpgrade


REFERENCES

For more information about how to upgrade Visual Basic 6 to Visual Basic .NET, browse to the following MSDN Web sites:

Keywords: kbvs2005doesnotapply kbvs2005swept kbfix kbmigrate kberrmsg KB316189