"2.0版不是兼容版本."从VB6 [英] "Version 2.0 is not a compatible version." from VB6

查看:59
本文介绍了"2.0版不是兼容版本."从VB6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个用VC ++ 6.0编写的COM模块,可以从VC ++ 6.0和VB 6.0程序中调用该模块.作为迁移到.Net的早期步骤,该模块被重写为.Net 3.5程序集,带有一个瘦COM模块包装,该包装仍从VC ++ 6.0和VB 6.0程序调用(这些程序未更改). VC ++ 6.0程序完全按预期运行,但是VB 6.0程序获得"2.0版不兼容的版本".尝试使用COM模块/.Net 3.5程序集时出现错误.

.Net Framework 2.0、3.0和3.5的安装版本已经过验证.运行程序的计算机已安装Windows Server 2003-R2.

有什么想法可以消除或破坏环境吗?任何人都可以至少阐明什么是"2.0版不是兼容版本".

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?

推荐答案

我想我还记得听说过一些有关必须按正确顺序安装.Net版本的事情.也许新服务器是从较新的光盘上安装的,并且上面装有.Net 3.5,后来又安装了.Net 20?您可能希望尝试卸载两个版本,然后按版本顺序重新安装.

不过,不能保证.
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.


这篇关于"2.0版不是兼容版本."从VB6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆