com error RPC_E_SERVERFAULT from com object or wrapper

adam <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <[email protected]>
I've so far not had to deal with any mucky stuff around using COM with .net

Note I have to use a 3rd part com object which talks to a local NT service.

My simple diagnostics app does this.

using ThirdParty;

class Program{
static void Main(){

CTheCOMObject com = new CTheCOMObject();

// ok
com.Function(arg1);
// not ok

}}

I get this exception [1]. My mains question is could this exception come
from the wrapper or due to some registration problem general to
.net/com/auto generated com wrapper issue OR could is only have com from
the 3rd part com component.

If it is the 3rd party then I can talk to them but at the moment the're
not giving out much :(

The code works on one machine but not on another

adam

[1] Type: System.Runtime.InteropServices.COMException
Message: The server threw an exception. (Exception from HRESULT:
0x80010105 (RPC_E_SERVERFAULT))
Source: Interop.ThirdParty
Stack:    at ThirdParty.CTheCOMObject.Function(String arg)
    at DiagnosticApp.Program.Main()

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.