[Ironruby-core] .NET Remoting with IronRuby 0.9.2

Patrick Brown patrickcbrown at gmail.com
Fri Nov 27 12:01:46 EST 2009


Hi Dong

   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.

Thanks,
Patrick

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.
>
> thanks
> Dong
>
>
> 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
> >
> >
> RemotingConfiguration.Configure("Configuration\\ClientRemotingConfiguration.config",
> > false)
> >
> >   service =
> > DIContainer.Instance.method(:Resolve).of(IPropertyPolicyService).call()
> >   types = DIContainer.Instance.method(:Resolve).of(ILookupInfos).call();
> >
> types.Add(DIContainer.Instance.method(:Resolve).of(ICodeListInfoBuilder).call().Build("AP",
> >
> >    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
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20091127/adfa8694/attachment.html>


More information about the Ironruby-core mailing list