在RemotingConfiguration.Configure(configFile)中获取System.Reflection.TargetInvocationException;

时间:2012-08-06 09:18:25

标签: c# remote-access .net-remoting

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

事情在普通网络上完美运行。而通过Microsoft DirectAcess连接相同的API throw和Exception。

[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)

可能出现什么问题?

谢谢。

0 个答案:

没有答案