Link to home
Start Free TrialLog in
Avatar of marioraposo
marioraposo

asked on

Windows 7 + Visual Basic 2008 + COM libraries

I have several programs that I wrote in Visual Basic 2008 under Windows XP and they are runing fine in XP.
Now I have changed my OS to Windows 7 and the COM libraries that I use in the programs give the same error when i try to use them inside the program.

Class Not Registered (Exception of HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

I have cheked with regedit that the classes are inside the registry but apparently Vb.net does not find them.
can this be a permission problem, because COM libraries are under Program Files (x86)

Do you have any suggestion to solve this ?
Avatar of sanket_1985
sanket_1985
Flag of India image

Register .NET COM assemblies using regasm.exe rather than regsvr32.exe. This is the most common problem. Also, you might need to link the files again on 64 bit computers as your application is probably looking in Program Files folder.
ASKER CERTIFIED SOLUTION
Avatar of stecasat
stecasat

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Try reinstalling the *.net framework ...