如何在 IronRuby 中使用远程处理
我试图在 IronRuby 中使用远程处理服务,但收到此错误。
尝试在公开“Contracts.SomeManager”的对象上调用在“IronRuby.Runtime.IRubyObject”类型上声明的方法。
你能帮我解决这个问题吗?
这是我的代码。
require "netincludes"
some_manager = System::Activator.get_object ISomeManager.to_clr_type, "tcp://localhost:8080/SomeManager"
some_manager.get_message "hello"
I was trying to consume a remoting service in IronRuby and I get this error.
Attempted to call a method declared on type 'IronRuby.Runtime.IRubyObject' on an object which exposes 'Contracts.SomeManager'.
Can you help me with this?
Here's my code.
require "netincludes"
some_manager = System::Activator.get_object ISomeManager.to_clr_type, "tcp://localhost:8080/SomeManager"
some_manager.get_message "hello"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当我尝试编写一个简单的 IronRuby 远程处理示例时,我遇到了类似的情况(实际上是绑定错误),但我可能搞砸了我的示例,我还没有玩过太多远程处理。
您可以在此处(或其他地方)发布完整的代码(以及 netincludes)吗?
也许我们可以识别错误(或正在进行的实现)并将其添加到 IronRuby 的 Codeplex 问题跟踪器。
如果事实证明这不是一个错误,我会在这里编辑我的答案,并且我可以帮助您解决这个问题。
I got something similar (binding error actually) when attempting to cook up a simple IronRuby remoting example, but I could have botched my example, I haven't played with remoting much.
Could you post the full code (along with netincludes) here (or somewhere)
Perhaps we can identify a bug (or implementation in progress) and add to the codeplex issue tracker for IronRuby.
I'll edit my answer here if it turns out not to be a bug, and I can help you resolve this.