HighTechTalks DotNet Forums  

Retrieving 32 bit COM from .NET app on x64 Win 2003: error: 80040154 + RPC_E_SERVERFAULT

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Retrieving 32 bit COM from .NET app on x64 Win 2003: error: 80040154 + RPC_E_SERVERFAULT in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
unknown
 
Posts: n/a

Default Retrieving 32 bit COM from .NET app on x64 Win 2003: error: 80040154 + RPC_E_SERVERFAULT - 10-29-2007 , 05:09 PM






Hi,

I have developed a C# .NET v2.0 application that is using a third party dll
storing a COM ( afaik dll is compiled with FoxPro if it does matter ).
Everything is OK on x32 OS but when running on x64 Win 2003, application
throws

"Retrieving the COM class factory for component with CLSID {GUID HERE}
failed due to the following error: 80040154."

exception ( dll is registered with regsvr32 and I can find its entry in
registry - its InprocsServer32 is pointing to the correct dll )

I have found the following solution to the problem - to rebuild .NET app
with Project platform set to "x86"

http://forums.asp.net/t/1119052.aspx

After rebuild'ing I haven't got the exc mentioned above, but the application
does not execute correctly anyway.
Just after a COM is tried to be instantiated, an application waits about 30
seconds and then throws

" Exception Message: The server threw an exception. (Exception from HRESULT:
0x80010105 (RPC_E_SERVERFAULT))."

on the first try to invoke COM method.

Does anybody have an idea what could be the problem ?

Thanks for Your help!















Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.