System.Runtime.Remoting.RemotingException:无法从IPC端口读取:管道已结束

时间:2016-06-16 09:42:26

标签: c# asp.net winforms ashx .net-remoting

  1. 我创建了一个通用的asp.net处理程序来流式传输文件并将其托管在IIS中
  2. 然后是一个从处理程序下载文件的Windows窗体应用程序。
  3. 然后当我尝试下载第3个文件时出错。

    什么可能导致这个问题?

    这里是完整的堆栈跟踪: -

    System.Runtime.Remoting.RemotingException: Failed to read from an IPC Port: The pipe has been ended.
    
    
    Server stack trace: 
    
       at System.Runtime.Remoting.Channels.Ipc.IpcPort.Read(Byte[] data, Int32 offset, Int32 length)
    
       at System.Runtime.Remoting.Channels.SocketHandler.ReadFromSocket(Byte[] buffer, Int32 offset, Int32 count)
    
       at System.Runtime.Remoting.Channels.SocketHandler.Read(Byte[] buffer, Int32 offset, Int32 count)
    
       at System.Runtime.Remoting.Channels.SocketHandler.ReadAndMatchFourBytes(Byte[] buffer)
    
       at System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadAndMatchPreamble()
    
       at System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadVersionAndOperation(UInt16& operation)
    
       at System.Runtime.Remoting.Channels.Ipc.IpcClientHandler.ReadHeaders()
    
       at System.Runtime.Remoting.Channels.Ipc.IpcClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
    
       at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)
    
    
    
    Exception rethrown at [0]: 
    
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    

0 个答案:

没有答案