我正在运行Ubuntu 13.10,64位或Ubuntu 12,32位和Mono JIT编译器版本2.10.8.1。
我在VS 2008中开发了一个使用.NET远程处理的应用程序。我们现在尝试在Ubuntu / Ubuntu Kylin上运行它,但是我收到以下错误。
//some code is removed with Mono Migration Analyzer
RemotingConfiguration.Configure(Application.ExecutablePath + ".config");
RemotingConfiguration.CustomErrorsEnabled(false);
// Create and marshal an object for remote invocation.
_RemotingServer = new RemotingServer();
//Register Client
_RemotingServer.KeepAliveClient = new delClientInfo(KeepAliveClient);
_RemotingServer.AddClient = new delClientInfo(AddClient);
_RemotingServer.RemoveClient = new delClientInfo(RemoveClient);
//Here <exception:uri already in use>
obj = RemotingServices.Marshal(this._RemotingServer, "RemotingServer");
导致异常: System.Runtime.Remoting.RemotingException:Uri已在使用中:
<!--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>