当我说慢时,我说的是每秒 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 完全解决了该问题。=\