
當我說慢時,我指的是每秒 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,並且不固定資源。實際上,部署對資源幾乎沒有影響。我覺得我錯過了一些明顯的東西 - 也許某個地方的設置限制了伺服器或我的本地配置上的吞吐量......有什麼想法嗎?
答案1
哈。我使用 Mac 作為我的開發站,當我需要使用 Windows 時,我會啟動 Virtual Box。在我嘗試從本機 Windows PC 進行部署後,我意識到我的錯誤是什麼。我的 Virtual Box 網路設定為 NAT。將其更改為橋接完全解決了該問題。 =\