C# 正在RemotingConfiguration.Configure(configFile)内获取System.Reflection.TargetInvocationException;

C# 正在RemotingConfiguration.Configure(configFile)内获取System.Reflection.TargetInvocationException;,c#,remote-access,.net-remoting,C#,Remote Access,.net Remoting,在我的代码中,我使用RemotingConfiguration.Configure(configFile) 在一个正常的网络上,一切都能完美地工作。而通过Microsoft DirectAccess进行连接则会引发相同的API抛出和异常 [Remoting configuration failed with the exception 'System.Reflection.TargetInvocationException: Exception has been thrown by the ta

在我的代码中,我使用
RemotingConfiguration.Configure(configFile)

在一个正常的网络上,一切都能完美地工作。而通过Microsoft DirectAccess进行连接则会引发相同的API抛出和异常

[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.Http.HttpServerChannel.SetupMachineName()
   at System.Runtime.Remoting.Channels.Http.HttpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider)
   at System.Runtime.Remoting.Channels.Http.HttpChannel..ctor(IDictionary properties, IClientChannelSinkProvider clientSinkProvider, IServerChannelSinkProvider serverSinkProvider)
可能出了什么问题

多谢各位