带有“类不支持自动化"的 ADODB.Connection 的 Exe 崩溃 [英] Exe Crash At ADODB.Connection with "Class does not support Automation"

查看:16
本文介绍了带有“类不支持自动化"的 ADODB.Connection 的 Exe 崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一台具有 MSVBVM60.dll 版本 6.0.97.82 的机器,比如 OLD.其他具有 MSVBVM60.dll 版本 6.0.98.15 的机器,比如 NEW.从新机器创建的 Exe 在旧机器上的 new ADODB.Connection 行崩溃,出现以下错误

One machine having MSVBVM60.dll ver 6.0.97.82, say OLD. Other machine having MSVBVM60.dll ver 6.0.98.15, say NEW. Exe created from NEW machine crashes at line new ADODB.Connection on OLD machine giving following error

运行时错误430":类不支持自动化或不支持支持预期接口

Run-time error '430': Class does not support Automation or does not support expected interface

如何摆脱这个?我的主要目标是在新机器上创建时在旧机器上运行 exe.为了避免干扰新机器的配置,我尝试在旧机器上注销旧版本并注册新版本,但没有成功.ADODB.Connection 是否使用了任何其他 dll,或者我需要做一些完全不同的事情来摆脱这个?

How to get rid of this? My prime objective is to run the exe on OLD machine while created on NEW machine. To avoid disturbing config of NEW machine, I tried to unregister older version and register newer version on the OLD machine but no success. Is there any other dll(s) used by ADODB.Connection or i need to do something totally different to get rid of this?

推荐答案

这与 VB 运行时版本无关,更多与 ADO 库有关(正如错误行所暗示的),是由 Microsoft 破坏兼容性引起的在他们的 ADO 库中.

This is nothing to do with the VB runtime versions and more to do with the ADO libraries (as the error line alludes to) and was caused by Microsoft breaking compatability in their ADO libraries.

知识库文章 2517589 解释了原因和解决方案,该解决方案本质上是针对兼容性类型库重新编译.

KB article 2517589 explains why and the solution which is essentially to recompile against the compatability typelib.

这篇关于带有“类不支持自动化"的 ADODB.Connection 的 Exe 崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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