.NET Remoting on Mono: Uri already in use
Running:
Ubuntu 13.10, 64-bit
Mono JIT compiler version 2.10.8.1
I have an application developed in VS 2008 that uses .NET remoting. We are trying to run this on Ubuntu/Ubuntu Kylin now, but I am receiving the following error.
Code
//RemotingConfiguration.Configure(Application.ExecutablePath + ".config", false);该行Mono Migration Analyzer检测不过
RemotingConfiguration.Configure(Application.ExecutablePath + ".config");
//RemotingConfiguration.CustomErrorsMode = CustomErrorsModes.Off;该行Mono Migration Analyzer检测不过
RemotingConfiguration.CustomErrorsEnabled(false);
// Create and marshal an object for remote invocation.
_RemotingServer = new RemotingServer();
//注册Client
_RemotingServer.KeepAliveClient = new delClientInfo(KeepAliveClient);
_RemotingServer.AddClient = new delClientInfo(AddClient);
_RemotingServer.RemoveClient = new delClientInfo(RemoveClient);
obj = RemotingServices.Marshal(this._RemotingServer, "RemotingServer");
causing exception:
System.Runtime.Remoting.RemotingException: Uri already in use:
<!--Remoting 设置-->
<system.runtime.remoting>
<customErrors mode="off"/>
<application>
<service>
<wellknown mode="Singleton" objectUri="RemotingServer" type="EquipsLib.RemotingServer,EquipsLib" />
</service>
<channels>
<channel name="MyChannel" port="8090" ref="http">
<serverProviders>
<provider ref="wsdl"/>
<formatter ref="binary" typeFilterLevel="Full"/>
</serverProviders>
<clientProviders>
<formatter ref="binary"/>
</clientProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>
Any ideas on this problem? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论