服务无法启动 - ArgumentNullException值不能为null参数名称ip

时间:2016-08-06 17:53:50

标签: service .net-remoting

服务无法启动 - ArgumentNullException value cannot be null parameter name ip。 我的服务无法启动,我在EventViewer中看到以下异常。

Service cannot be started. System.Runtime.Remoting.RemotingException: Remoting configuration failed with the exception 'System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: ip
   at System.Runtime.Remoting.Channels.CoreChannel.GetMachineIp()
   at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.SetupMachineName()
   at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider, IAuthorizeRemotingConnection authorizeCallback)
   at System.Runtime.Remoting.Channels.Tcp.TcpChannel..ctor(IDictionary properties, IClientChannelSinkProvider clientSinkProvider, IServerChannelSinkProvider serverSinkProvider)

当我调试时,异常发生在以下行:

-> RemotingConfiguration.Configure(configFile, false);

我的配置文件远程处理配置如下:

  <system.runtime.remoting>
    <application>
      <service>
        <wellknown mode="Singleton" objectUri="PersonalityModule.rem" type="Ideas.Instructor.PersonalityModules.SPPA.PersonalityModule, PM_SPPA"/>
      </service>
      <channels>
        <channel ref="tcp" port="7676"  >
            <formatter ref="binary" typeFilterLevel="Full" /> 
        </channel>
      </channels>
    </application>
    <customErrors mode="Off"/>
  </system.runtime.remoting>

我对远程处理知之甚少。我不明白是什么导致了这个错误以及如何解决它。请建议。提前谢谢。

0 个答案:

没有答案