Re: Remote call to COM impersonating another user



It's set up for remote calls - I am able to make these calls remotely using
JIntegra. I guess what I need is to duplicate what JIntegra does. I get
authentication errors which leads me to believe that I need the mechanism
that sets up the call with credentials - in this case userID, password.




"Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:%23599W$TUIHA.476@xxxxxxxxxxxxxxxxxxxxxxx
Well, you are more than likely going to have to call through DCOM/COM+.
Assuming you have it set up correctly on the other machine, and you have
an interface definition for the COM object you want to call, you can call
the GetTypeFromProgID (or GetTypeFromCLSID), using the overload which will
take a remote machine name. You would then create an instance of that
type through a call to CreateInstance on the Activator class, and cast to
your interface type.

Mind you, the semantics of making a remote call are different than just
making a regular COM call (activation contexts, instancing, and the like).

Do you already have the object set up for remote calls?

--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx

"JCav" <jcavanaugh@xxxxxxxxxxxx> wrote in message
news:47823515$0$9535$4c368faf@xxxxxxxxxxxxxxxxx
I need to call a COM object from a remote machine using C#. I also need to
pass on a different userID and password to the call. Has anyone done this?
I've used Java to do this using JIntegra, but the application I'm using
requires .NET.

Any advice?





.



Relevant Pages

  • Re: Remote call to COM impersonating another user
    ... I guess what I need is to duplicate what JIntegra does. ... and cast to your interface type. ... the semantics of making a remote call are different than ... just making a regular COM call (activation contexts, instancing, and the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Remote call to COM impersonating another user
    ... GetTypeFromProgID, using the overload which will take ... through a call to CreateInstance on the Activator class, ... interface type. ... the semantics of making a remote call are different than just ...
    (microsoft.public.dotnet.languages.csharp)

Loading