Re: Trying to remote a com object
From: Sunny (sunnyask_at_icebergwireless.com)
Date: 04/16/04
- Next message: David Waldock: "Re: Real Basic Stuff"
- Previous message: Sunny: "Re: Confusion: Server side creation of CAO's"
- In reply to: Mike Kearl: "Trying to remote a com object"
- Messages sorted by: [ date ] [ thread ]
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.
>
>
>
>
>
- Next message: David Waldock: "Re: Real Basic Stuff"
- Previous message: Sunny: "Re: Confusion: Server side creation of CAO's"
- In reply to: Mike Kearl: "Trying to remote a com object"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|