[Ironpython-users] .NET Remoting and Interface based objects
dinov at microsoft.com
Tue Oct 11 22:58:12 CEST 2011
I'm not quite certain this is the same issue but you should try using the wrapper from this thread:
The transparent proxies always succeed when casting them to an interface type so it's hard for us to work w/ the objects when we need to check for certain interfaces ourselves.
From: ironpython-users-bounces+dinov=microsoft.com at python.org [mailto:ironpython-users-bounces+dinov=microsoft.com at python.org] On Behalf Of Muyal,Tsahi
Sent: Tuesday, October 11, 2011 9:13 AM
To: ironpython-users at python.org
Subject: [Ironpython-users] .NET Remoting and Interface based objects
I am trying to call our .NET service via remoting using IronPython
I have the transparent proxy object but I don't know how to cast it to the interfaces (that are implemented by the server side object)
I tried IServerInterface.SomeMethod(transparent-proxy-object) but it is failing with "expected IServerInterface, got MarshalByRefObject"
How can I cast it to an interface?
I am using 2.7
Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users