2013-02-06 78 views
0

我在Windows 7 32位机器上创建了Windows应用程序与VS2010。它在我的生产机器上工作正常。错误:80040154在Windows 7 64位机器

但是当我在客户端服务器上安装此应用程序时,它生成错误“System.Runtime.InteropServices.COMException(0x80040154):检索具有CLSID {00024500-0000-0000-C000-000000000046}的组件的COM类工厂失败由于以下错误:80040154.“

客户机是widows 7 64bit。

我使用dll工作word,excel和pdf。

请帮我解决这个问题。我被这个问题困住了。

回答

0

汉斯溶液(https://stackoverflow.com/a/4021887/2019288

There are not many good reasons this would fail, especially the regsvr32 step. Run dumpbin /exports on that dll. If you don't see DllRegisterServer then you've got a corrupt install. It should have more side-effects, you wouldn't be able to build C/C++ projects anymore.

One standard failure mode is running this on a 64-bit operating system. This is 32-bit unmanaged code, you would indeed get the 'class not registered' exception. Project + Properties, Build tab, change Platform Target to x86.