本文介绍了COM类出厂错误:80040154的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的客户端出现以下错误,我知道此错误是由于在32位计算机中使用的dll在64位计算机中使用而产生的.但是我试图通过在Windows XP 32位中构建一个简单的dotnet dll在本地复制此错误,并尝试在64位计算机中的Windows应用程序中进行引用.我仍然无法复制此错误.错误消息:检索具有CLSID {}的组件的COM类工厂由于以下错误而失败:80040154

My client is getting the following error, i understood that this error is produced due to dll built in 32 bit machine is used in 64 bit machine. But i tried to replicate this error in local by building a simple dotnet dll in windows xp 32 bit, and tried referencing in the windows application in 64 bit machine. Still i am not able to replicate this error.Error Message: Retrieving the COM class factory for component with CLSID {}failed due to the following error: 80040154

plz对此提供任何输入.

plz provide any input on this.

推荐答案

在此处输入代码尝试确保您要查找的COM dll在目标计算机上正确注册.然后查看客户端,如果客户端是.NET,则应在x86模式下对其进行编译,以使用32位activex库.

enter code hereTry to ensure that the COM dll you are looking for is correctly registered on the target machine. Then look at the client, if the client is .NET you should compile it in x86 mode in order to use a 32 bit activex library.

这篇关于COM类出厂错误:80040154的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 08:43