![Visual Studio 2010 Web Deploy - 缓慢且充满错误](https://linux22.com/image/630585/Visual%20Studio%202010%20Web%20Deploy%20-%20%E7%BC%93%E6%85%A2%E4%B8%94%E5%85%85%E6%BB%A1%E9%94%99%E8%AF%AF.png)
当我说“慢”时,我指的是每秒 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。将其更改为 Bridged 完全解决了这个问题。=\