.NET Remoting System.Runtime.Remoting.RemotingException的详细信息(拒绝连接)

时间:2020-09-09 09:59:52

标签: c# .net remoting

有人知道是什么原因导致.NET远程服务器引发System.Runtime.Remoting.RemotingException: Connection refused异常吗?

可以立即在下面看到来自异常的堆栈跟踪示例。在此示例中,在成功设置TcpChannel并通过Activator.GetObject()创建了众所周知的对象代理之后,尝试获取远程对象属性的值时会引发异常。

Unhandled Exception:
System.Runtime.Remoting.RemotingException: Connection refused

Server stack trace: 
  at System.Runtime.Remoting.Channels.Tcp.HostConnectionPool.CreateConnection () [0x0002f] in <13447c6f047f47b8b8744bf3fc9e97d0>:0 
  at System.Runtime.Remoting.Channels.Tcp.HostConnectionPool.GetConnection () [0x0009d] in <13447c6f047f47b8b8744bf3fc9e97d0>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpConnectionPool.GetConnection (System.String host, System.Int32 port) [0x00057] in <13447c6f047f47b8b8744bf3fc9e97d0>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage (System.Runtime.Remoting.Messaging.IMessage msg, System.Runtime.Remoting.Channels.ITransportHeaders requestHeaders, System.IO.Stream requestStream, System.Runtime.Remoting.Channels.ITransportHeaders& responseHeaders, System.IO.Stream& responseStream) [0x00022] in <13447c6f047f47b8b8744bf3fc9e97d0>:0 
  at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage msg) [0x00066] in <13447c6f047f47b8b8744bf3fc9e97d0>:0 
Exception rethrown at [0]: 
  at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, System.Runtime.Remoting.Messaging.IMessage msg, System.Exception& exc, System.Object[]& out_args) [0x0014d] in <e50d21fbfba24408b2ca69b0d707999a>:0 
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_remoting_wrapper(intptr,intptr)
  at (wrapper remoting-invoke) AtComm.IAtState.get_RegisteredClients()
  at AtComm.AtClient.GetConfig () [0x00000] in <8aa350cf21d7487a888de25463df9ca3>:0 
  at AtComm.AtClient..ctor () [0x0001d] in <8aa350cf21d7487a888de25463df9ca3>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.Runtime.Remoting.RemotingException: Connection refused

目前,我不寻求有关所面临问题的帮助。相反,我想知道是否有人可以提供有关导致此异常普遍引发的原因的详细信息。

除了在此处找到非常高级的文档之外,我无法在Microsoft文档中找到任何有关此异常的详细信息,也无法从网络上找到:https://docs.microsoft.com/en-us/dotnet/api/system.runtime.remoting.remotingexception?view=netframework-4.8

任何人都可以对此异常进行详细说明,我们将不胜感激,因为如果没有这些信息,我不确定如何调试当前的实际问题。

0 个答案:

没有答案