我开发使用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