Unexpected exception occurred during upgrade engine operation

Hi,

During a every conversion of a 'VB6 project' to 'VB 2005 Express', I'm always getting folowing error:


Visual Basic Upgrade Wizard error

Unexpected exception occurred during upgrade engine operation: Kan niet aan de bron binden (Exception from HRESULT: 0x8004000A (OLE_E_CANT_BINDTOSOURCE))

OK

My System: Windows 2000 SP4 (Clean Install) - Visual Basic 2005 Express ed.

Any ideas howto resolve this?

Thx.

[466 byte] By [HomeBunny] at [2007-12-26]
# 1

This is a bug with the Upgrade Tool where it gets confused on where its registry settings are if there is an HLKM\Software\Wow3264Node key in the registry on a 32-bit machine.

Take a look at your registry by running RegEdit at the command line and opening the node HKEY_LOCAL_MACHINE\Software and check to see if you have key called Wow3264Node. If so temporarily rename it by right clicking on the key and selecting rename from the pop-up menu.

Then run the Upgrade Wizard. It should now run fine.

Once you have finished with the wizard you can go back and rename the registry key.

I'm sorry for the inconvenience but I hope that helps.

JohnHart_MS at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Interop and Upgrade...
# 2

Hi John,

I've searched the complete register, no key 'Wow3264Node' founded.

Any other ideas?

Greetz,

HomeBunny at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Interop and Upgrade...
# 3

I'm sorry. There was a typo in my answer the registry path should have been Wow6432Node. Specifically please look for HLKM\Software\Wow6432Node. If it exists temporarily rename the Wow6432Node key.

JohnHart_MS at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Interop and Upgrade...
# 4

Hi,

I've searched the whole register for 'Wow6432Node', without luck.

There are no 'Wow' keys under 'HLKM\Software\' at all.

Any other ideas what could causing this?

Greetz,

HomeBunny at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Interop and Upgrade...
# 5

I'm sorry to hear that wasn't the cause of the problem. I would like to work with you directly offline to see if we can determine what the cause is.

Can you please email me directly at JohnHart@Microsoft.com. ?

This way we can get to the bottom of this quicker.

JohnHart_MS at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Interop and Upgrade...
# 6

We took a closer look at this offline. For some reason there was a key missing from the registry. We simply added the following keys back to the registry and the Upgrade Wizard worked correctly.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\VBUpgrade\Source Language Drivers\Visual Basic]
@="Visual Basic 6.0"
"FileLocation"="vbsld"


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\VBUpgrade\Target Language Drivers\VB7]
@="Visual Basic 7"
"FileLocation"="vb7tld"

If you’re experiencing a similar error please take care when editing or changing your registry.

JohnHart_MS at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Interop and Upgrade...
# 7

Can send me the .reg file to my email...

vgta_@hotmail.com

thans

vgta at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Interop and Upgrade...
# 8
Hi,

Copy Following lines:

;

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\VBUpgrade]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\VBUpgrade\Source Language Drivers]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\VBUpgrade\Source Language Drivers\Visual Basic]
@="Visual Basic 6.0"
"FileLocation"="VBSLD"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\VBUpgrade\Target Language Drivers]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\VBUpgrade\Target Language Drivers\VB7]
@="Visual Basic 7"
"FileLocation"="vb7tld"

;

and paste them in a new notepad, save this as eq. 'ResolveError.reg'

Greetz,

HomeBunny at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Interop and Upgrade...