Fixed: Unexpected exception occurred during upgrade engine operation: Not able to bind to th
If you’re receiving this error message:
Unexpected exception occurred during upgrade engine operation:Not able to bind to the source (Exception from HRESULT: 0x8004000A (OLE_E_CANT_BINDTOSOURCE)
when using the Upgrade Wizard in Visual Basic 2005 please download and install the Visual Studio 2005 SP1.
You can find the Service Pack at:
http://msdn.microsoft.com/vstudio/support/vs2005sp1/default.aspx
Thanks
going a bit OT, I apologise, but when is the official fix list KB article to be published for SP1 for VS2005? The only one I have access to is the beta fix list. Most of our customers are querying about the official fix list.
Thanks,
Merry Christmas - best wishes
We were able to resolve this problem.
It seems even after applying SP1 for Visual Basic Express 2005 the problem may still occur.
I have not been able to reproduce the problem here so far but the solution that has worked is to add the registry entries for the upgrade tool that would normally appear on a standard Visual Basic 2005 or Visual Studio 2005 installation.
If you're still seeing this exception you can simply take the registry entries below and save them to a file on your machine with a .reg extension. Then as an adminstartor on the machine you can double click on the file from Windows Explorer and this will import the settings into the registry.
Please as always take care when editing or importing anything into your registry.
REGEDIT4
[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"
If after doing this you are still seeing the problem please feel free to contact me directly at JohnHart at Microsoft.com
I'm getting this error, or rather one close to it while trying to upgrade a project from Visual Basic 6.0 SP6 to Visual Basic .NET 2003 SP1. When the wizard says "Status: Invoking upgrade engine..." vbu.exe throws an exception (0xc00000fd) at the location 0x7c8155b9.
Clicking OK brings the next error message: "Unexpected exception occured during upgrade engine operation: QueryInterface for interface Microsoft.VisualBasic.UpgradeEngineInterface.IVBUpgradeEngine failed."
I've checked the registry fror the keys and values you mention, I have them under 7.1 and 8.0 (where I added them manually). I do not have the Wow6432 key, so that isn't the problem. I tried upgrading before installing SP1, same thing.
The registry settings that I’ve listed in this post were for Visual Basic 2005. They should be under 7.1 for VB 2003.
I would suggest that if you haven’t done so already to do a repair on Visual Studio 2003 from the control panel / add remove programs to see if this resolves the problem. You may also need to re-apply and Visual Studio service packs after doing the repair.
If that doesn’t work make sure vbu.exe is registered. To do this open a command prompt and navigate to ..\Program Files\Microsoft Visual Studio 2003\VB\VBUpgrade and type vbu.exe /regsvr.