Upgrading vb6 projects

I was unable to upgrade projects from vb6. I get an error when "invoking upgrade engine". Error occurs in vbu.exe.
Error message: Enexpected exception ocurred during upgrade engine operation: Error in remote procedure call. (Exception from HRESULT: 0x800706BE).

Using:
XP Pro Spanish Version
VB 2005 Express V8.0.50727.42
VB6 projects made with VB6 Enterprise Edition (SP6) Spanish Version.

[408 byte] By [CristianRosa] at [2007-12-17]
# 1
Hi Cristian,

It sounds to me like the VB Upgrade tool did not get installed correctly. I would suggest going to Add/Remove Programs in the control pannel and doing a repair on VB Express.

JohnHart_MS at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 2

Hi John,

Thank for your answer but that doesn't work.I also tried a clean install on another machine and I got the same error.

CristianRosa at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 3

Hi Cristian,

That is strange that a repair or a clean install did not fix the problem.

I would suggest trying to register VBUpgrade.Engine.DLL manually. You can do this from a command prompt by using the following command:

regasm C:\Program Files\Microsoft Visual Studio 8\VB\VBUpgrade\VBUpgrade.Engine.DLL

That should solve the problem if it doesn't please let me know

JohnHart_MS at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 4

Hi.

I have the same problem.

I tried all I can, but vbu.exe always do the same.

I have the spanish version of XP SP2 too... I think is this OS version.

ZeroCold at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 5
Hi John,

I'm still having the same problem. May be the OS version?

CristianRosa at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 6
Hi,

I'm thinking the same too. I've tried on 4 PCs and none of them work. Even with a clean install, SO, SP2 & VB, nothing else.

Please let me know if you find a way.

CristianRosa at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 7
We will try and setup a simular machine today to see if we can reproduce the problem. Was the VB Express version also Spanish or was it English?
JohnHart_MS at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 8
Hi,

XP Pro SP2 Spanish Version
VB 2005 Express V8.0.50727.42 English Version
VB6 Enterprise Edition (SP6) Spanish Version

Anything else you need to know please feel free to ask.
If you need that I try another version of VB please let me know.

CristianRosa at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 9

Hi Cristian,

I have not been able to reproduce the problem here so I asked Artinsoft who developed the Visual Basic Upgrade Enginge to help invesitgate the problem.

They have told me that there are two files that if they missing or not registered would cause this problem.

The two files are VBUpgrade.Engine.DLL and Microsoft.VisualBasic.UpgradeExtensions.DLL both of these files are in the ..\Program Files\Microsoft Visual Studio 8\VB\VBUpgrade directory.

I would suggest running Regasm on both of these files.

If that doesn't help please feel free to contact me directly at JohnHart@Microsoft.Com. and I'll help you determine what the problem is.

thanks

John

JohnHart_MS at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 10

Also please take a quick look at this thread on the forums:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=303774&SiteID=1&mode=1

We found yesterday that for some reason the version number for the UpgradeExtensions is not set correctly.

I hope that helps

JohnHart_MS at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 11

I have the same problem but one of the files failed to register please advise

see the error


C:\Program Files\Microsoft Visual Studio 8\VB\VBUpgrade>regasm VBUpgrade.Engine.
DLL
Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.42
Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.

RegAsm : warning RA0000 : No types were registered

SamerSelo at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 12
I had a similar problem when trying to open my VB6 project in VB 2005 Express, I forget what the error said but I remember that the error hinted that VB6 needs to be installed in order to make the changes, So I reinstalled it and opened the VB6 project in VB 2005 Express and it worked. GL :)
Stonehaven at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 13
Vb6 in already installed on my Pc with VB2005
SamerSelo at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 14

Hi Samer,

The warning issued from RegAsm for the VBUpgrade.Engine.DLL is expected.

We're actively trying to reproduce the problem here and so far have not been able to. We're working with Cristian offline to determine what exactly is causing the problem.

As soon as we have determine the cause I will let you know.

JohnHart_MS at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...