[Ironruby-core] .NET Remoting with IronRuby 0.9.2
patrickcbrown at gmail.com
Fri Nov 27 12:01:46 EST 2009
Unfortuantly not, it is an issue I am going to come back to and really
want to get to work but I temporarily dropped it so I could move forward on
learning the tools and language.
On Wed, Nov 25, 2009 at 11:41 PM, Dong Zhang <lists at ruby-forum.com> wrote:
> Hi Patrick
> did you find a solution to your problem?
> I got exactly the same problem while trying to call .NET remote method.
> Patrick Brown wrote:
> > Hello
> > Has anyone been able to get Remoting to work? I get the following
> > exception when attempting to make a call. I am rather new to IronRuby
> > but
> > believe my code should work, I converted a very simple snippit of
> > working C#
> > code to IronRuby and can't seem to get it to work. I put breakpoints in
> > the
> > .NET assemblies and watch each step complete successfully until the
> > service.SelectPolicies call.
> > mscorlib:0:in `HandleReturnMessage': Cannot load type
> > 'IronRuby.Runtime.IRubyObj
> > ect, IronRuby, Version=0.9.2.0, Culture=neutral,
> > PublicKeyToken=31bf3856ad364e35
> > '. (System::Runtime::Remoting::RemotingException)
> > from mscorlib:0:in `PrivateInvoke'
> > from Microsoft.Scripting.Core:0:in `BindCore'
> > from Microsoft.Scripting.Core:0:in `Bind'
> > from ./PropertyPolicy.rb:34:in `GitSomePolicies'
> > from main.rb:5
> > IronRuby snippit
> > false)
> > service =
> > DIContainer.Instance.method(:Resolve).of(IPropertyPolicyService).call()
> > types = DIContainer.Instance.method(:Resolve).of(ILookupInfos).call();
> > CodeValueAttribute.GetDescription(PolicyType.AllPacPolicy), "", 0,
> > DateTime.Now, DateTime.Now))
> > policies = service.SelectPolicies(types)
> > Thanks,
> > Patrick
> Posted via http://www.ruby-forum.com/.
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironruby-core