Microsoft KB Archive/820655

= BUG: &quot;An unexpected error has occurred&quot; error when you use the Convert Wizard in Visual Studio .NET 2003 =

Article ID: 820655

Article Last Modified on 1/12/2007

-

APPLIES TO


 * Microsoft Visual Basic .NET 2003 Standard Edition

-



SYMPTOMS
When you try to upgrade a Microsoft Visual Basic 6.0 ActiveX EXE project by using the Convert Wizard in Microsoft Visual Studio .NET (2003), you receive the following error message:

An unexpected error has occurred. Error Message: Object reference not set to an instance of an object. Call Stack: at Microsoft.VSWizards.MigrationWizard.ProjectTypePage.OnEnterPage(EventArgs e) at Microsoft.VSWizards.WizardPage.RaiseEnterPage at Microsoft.VSWizards.WizardForm.NextPage at Microsoft.VSWizards.MigrationWizard.MigrationWizardUI.NextPage at Microsoft.VSWizards.WizardForm.Next_Click(Object sender, EventArgs e)



WORKAROUND
To work around this bug, open the Visual Basic 6.0 ActiveX EXE project by using the Open Project Dialog box. To resolve the problem, follow these steps:
 * 1) Start Visual Studio .NET.
 * 2) On the File Menu, click Open, and then click Project.
 * 3) Click to select the Visual Basic 6.0 ActiveX EXE project, and then click Open.
 * 4) Use the Visual Basic Upgrade Wizard to successfully upgrade the Visual Basic 6.0 ActiveX EXE Project to Microsoft Visual Basic .NET.



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



Steps to Reproduce the Behavior
 Start Visual Basic 6.0. On the File menu, click New Project. On the 'New Project' dialog box, double-click ActiveX EXE. On the File menu, click Save Project As, and then save the project as TestExe.prj. Start Visual Studio. NET (2003). On the File menu click Open.</li> On the Open submenu, click Convert.</li> In the Convert dialog box, double-click Visual Basic .NET Upgrade Wizard under Available Converters.</li> Click Next, click the Browse button, and then click to select TestExe.prj.</li> Click Next.

You receive the error message mentioned in the &quot;Symptoms&quot; section of this article.</li> Click OK.

You receive the following error on the Visual Basic Upgrade Wizard error dialog box:

Internal error occurred: bad upgrade status. Wizard will exit.

</li></ol>

<div class="references_section">