Windows-Server-2008
Visual Studio 2010 Web 部署 - 緩慢且充滿錯誤
當我說慢時,我說的是每秒 10-30kb 的速度。在某些大於 1MB 的文件上,我偶爾會收到如下錯誤:
3/18/2014 12:21:08 PM:C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3847,5): Warning : Retrying the sync because a socket error (10054) occurred. Retrying operation 'Serialization' on object sitemanifest (sourcePath). Attempt 1 of 10. EventType=Trace ArgumentType=Microsoft.Web.Deployment.DeploymentRetryEventArgs TaskName=VSMSDeploy Message=Retrying the sync because a socket error (10054) occurred. Retrying operation 'Serialization' on object sitemanifest (sourcePath). Attempt 1 of 10. EventLevel=Warning EventData=System.Collections.Generic.Dictionary`2[System.String,System.Object] 3/18/2014 12:21:08 PM: VSMSDeploy: Using ID '8178049a-c9a1-4bde-bdd0-07beaf7f5679' for connections to the remote server. EventType=Trace ArgumentType=Microsoft.Web.Deployment.DeploymentAgentTraceEvent TaskName=VSMSDeploy Message=Using ID '8178049a-c9a1-4bde-bdd0-07beaf7f5679' for connections to the remote server. EventLevel=Info EventData=System.Collections.Generic.Dictionary`2[System.String,System.Object] 3/18/2014 12:22:10 PM:C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3847,5): Warning : Retrying the sync because a socket error (10054) occurred. Retrying operation 'Serialization' on object sitemanifest (sourcePath). Attempt 2 of 10. EventType=Trace ArgumentType=Microsoft.Web.Deployment.DeploymentRetryEventArgs TaskName=VSMSDeploy Message=Retrying the sync because a socket error (10054) occurred. Retrying operation 'Serialization' on object sitemanifest (sourcePath). Attempt 2 of 10. EventLevel=Warning EventData=System.Collections.Generic.Dictionary`2[System.String,System.Object] 3/18/2014 12:22:10 PM: VSMSDeploy: Using ID '1b4da8f4-6075-4fb3-b8fe-ddf0c8476803' for connections to the remote server. EventType=Trace ArgumentType=Microsoft.Web.Deployment.DeploymentAgentTraceEvent TaskName=VSMSDeploy Message=Using ID '1b4da8f4-6075-4fb3-b8fe-ddf0c8476803' for connections to the remote server. EventLevel=Info EventData=System.Collections.Generic.Dictionary`2[System.String,System.Object] 3/18/2014 12:23:17 PM:C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3847,5): Warning : Retrying the sync because a socket error (10054) occurred. Retrying operation 'Serialization' on object sitemanifest (sourcePath). Attempt 3 of 10. EventType=Trace ArgumentType=Microsoft.Web.Deployment.DeploymentRetryEventArgs TaskName=VSMSDeploy Message=Retrying the sync because a socket error (10054) occurred. Retrying operation 'Serialization' on object sitemanifest (sourcePath). Attempt 3 of 10. EventLevel=Warning EventData=System.Collections.Generic.Dictionary`2[System.String,System.Object]
只要文件在嘗試 #10 之前成功傳輸,部署就會繼續。如果嘗試 #10 失敗,它會停止,我必須重新啟動它。
我發現沒有什麼能真正與這些問題完全匹配。大多數遇到此類錯誤的人都有防火牆設置,根本無法部署,但我的問題似乎只是與過程的荒謬緩慢有關。伺服器正在執行 IIS 7.5,並且沒有固定資源。實際上,部署對資源幾乎沒有影響。我覺得我遺漏了一些明顯的東西——可能是某個地方的設置限制了伺服器或我的本地配置上的吞吐量……有什麼想法嗎?
哈。我使用 Mac 作為我的開發站,當我需要使用 Windows 時,我會啟動一個 Virtual Box。在我嘗試從本機 Windows PC 進行部署後,我意識到我的錯誤是什麼。我的 Virtual Box 網路設置為 NAT。將此更改為 Bridged 完全解決了該問題。=\