调用32位COM DLL:COMException(0x8000401A) [英] calling a 32bits COM dll : COMException (0x8000401A)

查看:112
本文介绍了调用32位COM DLL:COMException(0x8000401A)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我有一个使用外部COM库的asp.net应用程序。
在我的32位服务器上,没有问题。
在我的64位服务器上,我注册了dll没有任何错误,但如果我执行我的应用程序,我有这个错误:
System.Runtime.InteropServices.COMException(0x8000401A):检索具有CLSID {D63891F1-E026-11D3-A6C3-005004055C6C}的组件的COM类工厂由于以下错误而失败:8000401a。

我尝试将dll隔离到单独的进程中,如本主题中所述:http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID = 2364472& SiteID = 1但我仍然遇到同样的问题。

.net 64bits应用程序有没有办法调用COM 32bits dll?

感谢您的反馈。

jb

Hello,

I have an asp.net application that used an external COM library.
On my 32bits server, there is no problem.
On my 64bits server, I register the dll without any error, but if I execute my application, I have this error :
System.Runtime.InteropServices.COMException (0x8000401A) : Retrieving the COM class factory for component with CLSID {D63891F1-E026-11D3-A6C3-005004055C6C} failed due to the following error: 8000401a.

I try to isolate a dll into seperate process like it was said in this topic : http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2364472&SiteID=1 but I still have the same problem.

Is there a way for a .net 64bits application to call a COM 32bits dll?

Thanks for your feedback.

jb

推荐答案

这实际上是一个安全问题。自8000401a 在WinError.h中记录的错误代码: CO_E_RUNAS_LOGON_FAILURE:由于配置的标识不正确,无法启动服务器进程。检查用户名和密码。


请参阅此处了解如何设置足够的权限:

为什么我会收到8000401A错误?


这篇关于调用32位COM DLL:COMException(0x8000401A)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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