Symptoms
When you run the Microsoft Visual Basic .NET or Microsoft Visual Basic 2005 Upgrade Wizard to upgrade your Microsoft Visual Basic 6.0 projects, you may receive the following error message:
Unexpected exception occurred during upgrade engine operation: Object is static; operation not allowed.
Resolution
You can use double-byte character set (DBCS) characters to name your Visual Basic 6.0 files and to name your Visual Basic 6.0 projects. You can also use DBCS characters to name the folders that contain your Visual Basic 6.0 files and to name the folders that contain your Visual Basic 6.0 projects. You can then run the Visual Basic .NET or Visual Basic 2005 Upgrade Wizard to upgrade these projects.
You receive the error message that is mentioned in the “Symptoms” section of this article if you use DBCS characters with 0×5b or 0×5c trailing bytes to name your Visual Basic 6.0 files, to name your Visual Basic 6.0 projects, or to name your Visual Basic 6.0 folders. You receive the error message because the Visual Basic .NET or Visual Basic 2005 Upgrade Wizard incorrectly interprets the trailing bytes of these DBCS characters as the ‘[‘ (0×5b) single-byte character set (SBCS) character and the ‘\’ (0×5c) SBCS character. Therefore, the Visual Basic .NET or Visual Basic 2005 Upgrade Wizard expects files, projects, or folders with names that contain these SBCS characters. However, these files, projects, or folders only contain DBCS characters, so you receive the error message.