使用ASP.NET的interop'80040154类未注册'

Law*_*eld 10 .net c# asp.net com iis

我在运行IIS6的Windows XP Pro SP2 x64计算机上收到以下错误:

System.Runtime.InteropServices.COMException: 
Retrieving the COM class factory for component with CLSID
{3C250CBD-6CC9-11D2-9457-00004B48467E} failed due to the following error:
80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Run Code Online (Sandbox Code Playgroud)

尝试实例化COM互操作对象时会发生这种情况.

奇怪的是,这可以在与应用程序池(AD中的用户)相同的帐户下运行的控制台应用程序中正常工作.即两者都使用UserX,所以它似乎不是一个明显的权限问题.

其他人有类似的东西吗?

use*_*883 20

确保您的应用程序池是32位(或支持32位应用程序)或您的COM控件支持64位应用程序.最有可能的是,您的本机COM库是32位,默认情况下您的池运行64位工作程序,无法加载32位COM DLL.