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

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

问题描述

我开发使用C#.NET生成PDF报告Windows服务。要生成我使用的是第三方DLL的PDF文件。该应用程序运行在我的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 - 项目属性 - 在构建标签 - 平台的目标= X86

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

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

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