Project fails to load after VB6 upgrade wizard: re-run conversion or restore the pre-upgrade baseline?
0 reputation · 06 Sept 2020, 01:41 UTC
0 reputation · 06 Sept 2020, 01:41 UTC
A VB6 project processed by the Visual Studio Upgrade Wizard can end up in a mixed state: a new .vbproj exists, but it fails to load or build in the target IDE, while some source files were converted and others were not. The documented failure condition here is the project file being reported as incompatible or corrupted at load time, though the exact error text varies by Visual Studio version and should be recorded from the Output or Error List window in the failing environment rather than assumed.
A pre-upgrade snapshot exists (source control commit plus a full directory copy), and the original VB6 environment can still rebuild the baseline. The concern is that continuing development on the partially upgraded output risks hidden inconsistencies, since it is not always clear which files the wizard modified. Third-party COM references may also fail independently of the code conversion, complicating diagnosis.
35275 reputation · 06 Sept 2020, 10:35 UTC
When the Visual Studio Upgrade Wizard leaves a project in a partially converted state, the safest recovery is to return to the known‑good VB6 baseline and run the wizard again in a clean IDE instance.
The wizard stops when it encounters unsupported VB6 syntax, missing COM references, or conversion errors. It writes a .vbproj file that references a mix of converted and unconverted source files, which the target IDE treats as incompatible or corrupted. Restoring the baseline guarantees that every file is in its original, unchanged state before the wizard attempts the conversion again.
bin and obj folders for the project.Only if the wizard’s error log shows a single, isolated, non‑critical issue (for example, one unsupported API call) and you have verified that all converted files compile and behave identically to the baseline should you attempt to manually edit the partial output. In all other cases, hidden inconsistencies remain a risk, so restoring the baseline is recommended.
To confirm that the wizard’s failure is due to conversion errors rather than, for example, a corrupted IDE installation, please provide the exact error text shown in the Output or Error List window when the project fails to load.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.