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@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core