Microsoft KB Archive/820655

From BetaArchive Wiki

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.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Start Visual Basic 6.0.
  2. On the File menu, click New Project.
  3. On the 'New Project' dialog box, double-click ActiveX EXE.
  4. On the File menu, click Save Project As, and then save the project as TestExe.prj.
  5. Start Visual Studio. NET (2003).
  6. On the File menu click Open.
  7. On the Open submenu, click Convert.
  8. In the Convert dialog box, double-click Visual Basic .NET Upgrade Wizard under Available Converters.
  9. Click Next, click the Browse button, and then click to select TestExe.prj.
  10. Click Next.

    You receive the error message mentioned in the "Symptoms" section of this article.
  11. 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.


REFERENCES

For more information about migrating applications to Visual Basic .NET, visit the following Microsoft Developer Network (MSDN) Web site:



Keywords: kbvs2005swept kbvs2005doesnotapply kbupgrade kbmigration kbmigrate kbconvert kbcompiler kbcodegen kbbug KB820655