开发者

Error calling COM DLL in asp.net webservice

I am attempting to call a COM component (that lives in component services) via a local web service but it fails with the following error:

Class not regis开发者_开发问答tered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

I have created a C# windows app that does exactly the same thing and calls the COM component fine every time. I assumed this was a security issue so I have added Everyone to the access permissions for component services but this doesn't help. Any suggestions? Could it be a 64 bit related issue?

Versions: VS2008, .NET 3.5, Windows 7, 64 bit


On a 64-bit version of Microsoft Windows, it is possible to run 32-bit applications using the WOW64 emulator. However, processes can only be 32-bit or 64-bit. You cannot have a process that runs both.

Try creating a new interop dll too

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜