Назад | Перейти на главную страницу

Visual Studio 2010 Web Deploy - медленный и полный ошибок

Когда я говорю медленно, я говорю что-то вроде 10-30 Кбайт в секунду. А для некоторых файлов размером более 1 МБ я иногда получаю такие ошибки:

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, я понял, в чем была моя ошибка. Моя сеть Virtual Box была настроена на NAT. Изменение этого параметра на мост полностью решило проблему. знак равно