
遅いというのは、1 秒あたり 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 に設定されていました。これをブリッジに変更すると、問題が完全に解決しました。=\