SYMPTOMS
When you try to open a Microsoft Visual Basic 6.0 project in Microsoft Visual Basic .NET or in Microsoft Visual Studio, you may receive the following error message:
The Visual Basic 6.0 upgrade tool is not installed on this computer.
RESOLUTION
First, make sure that you are not running Visual Basic .NET 2002 Standard Edition. Conversion of Visual Basic 6.0 projects to Visual Basic .NET or to Visual Basic 2005 requires the Visual Basic Upgrade Wizard. This tool is not included in the Visual Basic .NET 2002 Standard Edition package. You will need to upgrade to an edition of Visual Studio .NET, Visual Basic .NET 2003,Visual Studio 2005, or Visual Basic 2005 to obtain this wizard.
Verify that the wizard is installed on your computer. To do this, click
Start, point to
Search, click
For Files or Folders, and then run a search for
VBUpgrade.exe. If this file does not exist on your computer, you have to rerun Setup.
If the file exists, you may have to reregister it. Instead of using RegSvr32, this file requires registration through a file included with Visual Studio .NET or Visual Studio 2005 named RegAsm.exe. Run this executable from the command prompt.
By default, the path for the .NET Framework 1.0 and Visual Studio .NET 2002 is as follows:
C:\Windows\Microsoft.NET\Framework\v1.0.3705\RegAsm.exe Visual Basic .NET or Visual Studio .NET 2002 install directory\Common7\IDE\Microsoft.VisualBasic.UpgradeWizard.dll
By default, the path for the .NET Framework 1.1 and Visual Studio .NET 2003 is as follows:
C:\Windows\Microsoft.NET\Framework\v1.1.4322\RegAsm.exe Visual Basic .NET or Visual Studio .NET 2003 install directory\Common7\IDE\Microsoft.VisualBasic.UpgradeWizard.dll
By default, the path for the .NET Framework 2.0 and Visual Studio 2005 is as follows:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe Visual Basic 2005 or Visual Studio2005 install directory\Common7\IDE\Microsoft.VisualBasic.UpgradeWizard.dll
If the preceding command line does not work, or if you have installed Visual Studio .NET or Visual Studio 2005 to a directory other than the default, follow these steps to reregister the DLL file:
- Click Start, point to Search, click For Files or Folders. Search for RegAsm.exe and Microsoft.VisualBasic.UpgradeWizard.dll on the hard disk on which Windows is installed. To do this, type both items, separated by a space, in the first field of the search window, as follows:
RegAsm.exe Microsoft.VisualBasic.UpgradeWizard.dll
- After you find these items, leave the search window open, click Start, and then click Run so that the Run dialog box is open in the foreground. Drag the RegAsm.exe file that you just found into the Open box.
The path and name of the file should appear in the Open box. - Repeat this drag operation with the Microsoft.VisualBasic.UpgradeWizard.dll file.
Both fully qualified files and paths should now appear in the Open box, separated by a space. - Click OK.
A command-prompt window appears briefly, and then disappears.
The Visual Basic 6.0 project should now open in Visual Studio .NET or in Visual Studio 2005.