.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!

图片描述

以上是 .NET Remoting on Mono: Uri already in use 的全部内容, 来源链接: utcz.com/p/190492.html

回到顶部