I run into a problem similar to "Remoting is broken for well-known objects" 
work item id 470.

But I'm using the following pattern (to access a DCOM object):

>>>t = System.Type.GetTypeFromProgID("Namespace.MyRemoteType", 
>>>"MyRemoteMachineName")
>>>obj = System.Activator.CreateInstance(t)

I tried the typedproxy helper class workaround for the above workitem issue 
(when using Activator.GetObject), but it doesn't solve this problem.  I get the 
following error when using the typedproxy workaround:

>>>Obj.MyMethod()
IronPython.Runtime.Exceptions.ArgumentTypeException: descriptor 'MyMethod' 
requires a 'MyRemoteType' object but received a 'MarshalByRefObject'

I know this works from c# (without the typed proxy workaround, of course).  Is 
there an alternate workaround?


I know this question is out of scope here, but, is there an alternate way to 
access DCOM objects (without doing a .NET publish in a process on the remote 
machine?


Nick Gerner
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to