Click here to Skip to main content
15,885,818 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We have a COM module written in VC++ 6.0 which is called from both VC++ 6.0 and VB 6.0 programs. As an early step in moving to .Net, this module was rewritten as a .Net 3.5 assembly with a thin COM module wrapper which is still called from VC++ 6.0 and VB 6.0 programs (these programs are unchanged). The VC++ 6.0 programs work exactly as expected, but the VB 6.0 program gets a "Version 2.0 is not a compatible version." error when attempting to use the COM module/.Net 3.5 assembly.

Installed versions of .Net frameworks 2.0, 3.0 and 3.5 have been verified. The machine running the programs has Windows Server 2003 - R2 installed.

Any ideas what could be missing or broken in the environment? Can anyone at least clarify what "Version 2.0 is not a compatible version." means?
Posted
Updated 29-Nov-11 9:13am
v4

1 solution

I think I remember hearing something about having to install versions of .Net in the proper order. Maybe the new server was installed from a newer disc, and had .Net 3.5 on it, and .Net 20 was installed as an afterthought? You might want tto try uninstalling both versions, and then reinstalling in version order.

No guarantees, though.
 
Share this answer
 
Comments
Phre2d 29-Nov-11 15:32pm    
Thanks for the suggestion, but it doesn't seem to be the problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900