[IronPython] Remoting
Paul Clinch
paul.clinch at cybview.com
Tue Feb 28 11:20:20 CET 2006
Is it possible to use a remote object in ironpython? I have 1.0 beta1 and
get the following:-
>>> import RemoteDiagnostic
>>> dir( RemoteDiagnostic )
['IRemoteDiagnostic', '__builtins__', '__dict__', '__name__']
>>> rd = System.Activator.GetObject(
System.Type.GetType(RemoteDiagnostic.IRemoteDiagnostic),
"tcp://192.168.2.155:8490/ShellDiagnostic" )
Traceback (most recent call last):
File , line 0, in input##64
File , line 0, in GetObject
File , line 0, in GetObject
Exception: Trying to create a proxy to an unbound type.
I am able to use the following C# code:-
using RemoteDiagnostic;
...
IRemoteDiagnostic m_Diagnostic;
m_Diagnostic = (IRemoteDiagnostic)Activator.GetObject(
typeof(IRemoteDiagnostic),
"tcp://192.168.2.155:8490/ShellDiagnostic");
Regards, Paul.
More information about the Ironpython-users
mailing list