2013-08-06 126 views
2

我們僅在生產環境中遇到以下問題。其餘的環境工作正常。WCF上的遠程主機強制關閉了現有連接

我們檢查了stackoverflow上的各種鏈接,但沒有任何工作。

  • 試圖增加`
<httpRuntime maxRequestLength="2147483647" /> 
  • 增加超時
  • 放跟蹤,但即使沒有表現出任何具體問題

    [SocketException (0x2746): An existing connection was forcibly closed by the remote host] 
        System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +245 
    
    [IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.] 
        System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +7867549 
        System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size) +22 
        System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead) +408 
    
    [WebException: The underlying connection was closed: An unexpected error occurred on a receive.] 
        System.Net.HttpWebRequest.GetResponse() +7870788 
        System.ServiceModel.Channels.HttpChannelRequest.WaitForReply(TimeSpan timeout) +99 
    
    [CommunicationException: An error occurred while receiving the HTTP response to http://myservice/Service.svc. This could be due to 
    the service endpoint binding not using the HTTP protocol. This could 
    also be due to an HTTP request context being aborted by the server 
    (possibly due to the service shutting down). See server logs for more 
    details.] 
        System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +4728419 
        System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +1725 
        MyService.ISSO.ProcessRequest(SSORequest request) +0 
    
+1

這可能是由服務中的未處理異常導致服務關閉引起的。您是否在事件查看器中查看是否有任何記錄的服務錯誤? – Tim

+0

@Techmaster你發現了一個根本原因或解決方案嗎? – n00b

+0

@ n00b不,我不能:( – Techmaster

回答

0

「無法從傳輸連接讀取數據:現有連接被遠程主機強制關閉。」

由於組策略設置可能會生成此錯誤。嘗試使用SQL Management Studio連接到分析服務,如果錯誤持續嘗試會提升用戶privilages

+0

你能詳細說明一下嗎?如何連接到託管服務器上的SQL Management Studio?哪個用戶提升用戶權限? – n00b

相關問題