由于以下错误,检索具有 CLSID {XXXX} 的组件的 COM 类工厂失败:80040154 [英] Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154

查看:29
本文介绍了由于以下错误,检索具有 CLSID {XXXX} 的组件的 COM 类工厂失败:80040154的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 C#.NET 开发了一个 Windows 服务来生成 PDF 报告.要生成 PDF 文件,我使用了第三方 dll.该应用程序在我的 Windows XP 平台上运行.当我在 Windows Server 2008 64 位版本中部署该服务时,出现以下错误:

I developed a Windows service using C#.NET to generate PDF report. To generate PDF file I am using a third party dll. The application is running in my Windows XP platform. When I deployed the service in Windows Server 2008 64 bit version, I got this error:

检索 COM 类工厂带有 CLSID 的组件{46521B1F-0A5B-4871-A4C2-FD5C9276F4C6}由于以下错误而失败:80040154.

Retrieving the COM class factory for component with CLSID {46521B1F-0A5B-4871-A4C2-FD5C9276F4C6} failed due to the following error: 80040154.

我使用 regsvr32 命令注册了 DLL.我能够在注册表中看到这个 CLSID.但问题依然存在.

I registered the DLL using the regsvr32 command. I able to see this CLSID in the registry. But the problem persists.

可能是什么问题?

推荐答案

在 VS - 项目属性 - 在 Build 选项卡 - platform target =X86

In VS - project properties - in the Build tab - platform target =X86

这篇关于由于以下错误,检索具有 CLSID {XXXX} 的组件的 COM 类工厂失败:80040154的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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