Visual Basic Q&A

As a software engineer, I focus on .NET, especially asp.net, C#, WCF and so on, and I am also very interested in Search Engine Optimization.

Entries Tagged ‘Wizard’

FIX: The Data Form Wizard May Not Open an Access 2000 Database

Symptoms
If you use the Visual Basic Data Form Wizard to open an Access 2000 database you may get the following error:

“Unrecognized Database Format ‘….\your_database_name.mdb’”
Resolution
The Visual Basic Data Form Wizard uses the Jet OLEDB 3.5 Provider which does not recognize the Access 2000 database format.

BUG: You receive an “Unexpected exception occurred during upgrade engine operation” error message when you run the Visual Basic .NET or Visual Basic 2005 Upgrade Wizard

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.

BUG: Setup Wizard Closes With Error: Invalid Property Value…

Symptoms
When starting the Microsoft Visual Basic Application Setup Wizard, a dialogbox appears with the following error message:

Invalid property value, an unexpected error has occurred.
If you click OK, the Setup Wizard terminates.
Resolution
When the Setup Wizard begins, a system configuration file is read. If thedevices listed in the configuration file cannot be located, the erroroccurs and the Setup Wizard terminates.

BUG: Data Form Wizard Through Application Wizard Omits ADO Reference

Symptoms
When you run an application that is created using the Visual Basic Application Wizard, you receive the following error message:

Compile error: User-defined type not defined
Resolution
The Application Wizard allows for the creation of forms via the Data FormWizard. When a form is created in this manner, a reference to ADO is notadded to the project.

A “No mapping exists from DbType Object to a known OdbcType” error occurs when you configure the OdbcDataAdapter by using the Data Adapter Configuration Wizard

Symptoms
When you configure the OdbcDataAdapter using the Data Adapter Configuration Wizard, you may receive the following error message after you specify the SQL query string:

No mapping exists from DbType Object to a known OdbcType.
Resolution
The problem occurs because the query string that is specified in the SELECT command of the Data Adapter Configuration Wizard is incorrect. When the query string is incorrect, the Data Adapter Configuration Wizard incorrectly generates the error message that is specified in the “Symptoms” section instead of one of the following error messages:

Invalid column name.-or-

Invalid table name.