Re: Trying to remote a com object

From: Sunny (sunnyask_at_icebergwireless.com)
Date: 04/16/04


Date: Fri, 16 Apr 2004 11:38:05 -0500

Hi Mike,
the Interop assembly generated for the COM class in not inherited from
MarshalByReferenceObject. So you can not remote it. And when you try at
client to create a class, it tries to create it locally, and ... of
course it fails, as the COM is not installed at the client.

2 possibilities:
1. (my preferred) Create a wrapper around the COM object. Expose to
remoting that wrapper, not the COM object itself.
2. Maybe you can disassemble the Interop dll, make the class inherit
from MarshalByReference and compile it again.

Hope that helps
Sunny

In article <Ovw74l8IEHA.3032@TK2MSFTNGP09.phx.gbl>, mkearl@hotmail.com
says...
> I am trying to remote a com object and am getting an error that the clsid
> blah blah is not registered.
> I am not sure what to put in my app.config and my remotingservers config.
> this is what I have.
>
> app.config -
> <wellknown type="Interop.CC, CC.CreditReportClass"
> url="TCP//209.90.112.215:9000/RemotingServer/Interop.CC" />
>
> Server Remoting Service Config;
> <wellknown mode="SingleCall" type="Interop.CC, CC.CreditReportClass"
> objectUri="Interop.CC" />
>
> If I install the dll on the client everything works fine but I am trying to
> get away from that so I dont have to install the dll on every computer.
>
> I am not sure if my assembly name is wrong.. or even how to get the assembly
> name
> I have the com object referenced in my app and I have it so it copies
> local.. so it creates a InteropCC.dll file
>
> this is how I am calling it from my app and where it errors out
> CC.CreditReportClass report = new CC.CreditReportClass();
>
> Any help would be appreciated.
>
> Mike.
>
>
>
>
>



Relevant Pages

  • Re: RWW Disconnecting
    ... I understand that remote client encounts following error message when RWW ... I strongly suggest that we rerun the Configure E-mail and Internet ... 825763 How to configure Internet access in Windows Small Business Server ...
    (microsoft.public.windows.server.sbs)
  • Re: Great SWT Program
    ... graphics; one-button mice...all while the machines have tended to be ... the internet are good enough that you can run a modern-as-of-2007 GUI ... * Remote machine has graphical app running that tells the Windows ... network to the client to display a button labeled "foo" at those ...
    (comp.lang.java.programmer)
  • Re: Redirect problems to remote client
    ... sent you a copy of the results file from the client. ... > remote client and redirecting the My Documents folder. ... > - Internet Explorer Maitenance policy processing ... Microsoft is providing this information as a convenience to you. ...
    (microsoft.public.windows.server.sbs)
  • RE: Remote connectivity problems
    ... do you mean you have added a remote client to SBS ... If you have hardware VPN tunnel setup using Linksys or others, ... In this scenario you have to configure the SBS Server computer to enable ...
    (microsoft.public.windows.server.sbs)
  • Re: Mapped Drives over VPN
    ... When the client tries to access a share on the remote machine, ... Microsoft CSS Online Newsgroup Support ... | They have generally two mapped drives. ...
    (microsoft.public.windows.server.sbs)

Loading