64 位操作系统上 32 位 ActiveX DLL 的问题

发布于 2024-10-10 08:48:59 字数 692 浏览 0 评论 0原文

我正在尝试将分类 ASP 站点移动到 64 位 Windows 2008 服务器。我现在遇到的问题(如果/当我克服这个问题时可能还会有其他问题)是该站点依赖于旧的 VB6 DLL(32 位),并且我得到了臭名昭著的“ActiveX 组件无法创建对象”错误。

我尝试将 IIS7 排除在外,尝试让它与一个简单的 VBS 脚本文件一起工作,这给了我同样的结果。

该 DLL 唯一的依赖项是 ADO 2.6,据我所知,Windows 2008 不支持该 DLL,也不需要它,因为包含了 WDAC 并取代了 MDAC。

我使用以下内容来注册我的组件:

C:\Windows\SysWOW64\regsvr32.exe "C:\MyVb6Com.dll"

我检查了注册表,一切都显示正确。我的 VBS 文件也很简单:

CreateObject("MyVb6Com.Session")

它立即抛出错误:

ActiveX component can't create object: 'MyVb6Com.Session'

在 IIS 端,我已经尝试更改应用程序池的设置以启用 32 位应用程序,但这也没有帮助(当然,如果我可以的话)不能让它与 VBS 文件一起工作,这无论如何都不会产生影响)。

任何帮助将非常感激。

I'm trying to move a classing ASP site to a 64-bit Windows 2008 server. The problem I have right now (there may be others if/when I get past this one) is that the site depends on an old VB6 DLL (32-bit), and I get the notorious "ActiveX component can't create object" error.

I tried taking IIS7 out of the equation by trying to get it to work with a simple VBS script file, and that's giving me the same thing.

The only dependency this DLL has is ADO 2.6, and from what I've read, this isn't supported and isn't needed for Windows 2008, as WDAC is included and has replaced MDAC.

I use the following to register my component:

C:\Windows\SysWOW64\regsvr32.exe "C:\MyVb6Com.dll"

I checked the registry, and everything appears correct there. My VBS file is also simple:

CreateObject("MyVb6Com.Session")

And it throws the error immediately:

ActiveX component can't create object: 'MyVb6Com.Session'

On the IIS end, I've already tried changing the application pool's settings to enable 32-bit applications, and that didn't help either (of course, if I can't get it to work w/ VBS file, this wouldn't make a difference either way).

Any help would be very much appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

怕倦 2024-10-17 08:48:59

确保您也使用 32 位 WScript 来测试 VB 脚本。双击它将使用 64 位 - 这将有助于诊断您的问题。

Make sure you use the 32-bit WScript to test your VB Script as well. Double-clicking it will use 64-bit - that will help go to diagnosing your issue.

幸福还没到 2024-10-17 08:48:59

在驱动 IIS7 网站的应用程序池中,选择“高级设置”,然后将“启用 32 位应用程序”设置为“True”。

除非设置此项,64 位计算机上的 IIS7 将不会使用 32 位 DLL。

In the app pool driving your IIS7 website, choose Advanced Settings and near the top, set Enable 32-Bit Applications to True.

IIS7 on a 64-bit machine will not use 32-bit DLLs unless this is set.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文