开发者

Error calling COM DLL in asp.net webservice

开发者 https://www.devze.com 2023-02-04 16:05 出处:网络
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:

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

精彩评论

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