问题描述
你好
我一直在关注Azure帮助文档(使用默认模板的简单ASP.NET MVC应用程序)上的快速入门教程.但是,我是通过Azure门户以及在Visual Studio中配置发布设置时自己创建的Web服务资源. 我选择了选择现有的"而不是新建" (不过,我也尝试过执行创建新选项时遇到相同的错误).
I've been following the quickstart tutorial on the Azure help docs (a simple ASP.NET MVC app, using the default template). However, I created the Web Service resource myself via the Azure portal and when I configured the publish settings in Visual Studio I chose "Choose Existing" instead of "Create New" (however I have also tried doing the create new option with the same error encountered).
当我点击publish时,一切似乎都正常,但是最终我得到了以下信息:
When I hit publish everything seems to be working, but eventually I get the following:
```
F:\ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ Microsoft \ VisualStudio \ v15.0 \ Web \ Microsoft.Web.Publishing.targets(4292,5):警告:由于套接字错误(10054,请重试同步) ).
在对象sitemanifest(sourcePath)上重试操作"Serialization".尝试10次中的1次.
F:\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\Web\Microsoft.Web.Publishing.targets(4292,5): Warning : Retrying the sync because a socket error (10054) occurred.
Retrying operation 'Serialization' on object sitemanifest (sourcePath). Attempt 1 of 10.
```
最终,整个事情失败了,我不得不再试一次.我还没有找到解决方案.我已经看到一些答案,这表明我要部署到的服务器上存在防火墙问题,但是由于设置了资源,我认为我无权访问此问题. 作为Azure上的Web应用程序(不使用我设置的VM).
Eventually the whole thing fails and I have to try again. I haven't been able to find a solution to this yet. I've see some answers that suggest a firewall issue on the server I'm deploying to, but I don't think I have access to that since I set up the resource as a Web App on Azure (not using a VM that I setup).
我还看到一些人认为这可能是我的ISP的问题,但是我只是想在与他们通话之前就用尽所有选择.
I've also seen some people suggest that it may be an issue with my ISP, but I'm just trying to exhaust all my options before I get on the phone with them.
有人知道这个问题或任何变通办法吗?
Does anyone know of this issue or know of any workarounds?
只需等待所有超时,然后在日志文件中出现错误:
Just waited out all of the timeouts and got an error in a log file:
```
11/13/2018 1:28:28 PM
System.AggregateException:发生一个或多个错误. ---> System.Exception:构建失败.检查输出"窗口以获取更多详细信息.
---内部异常堆栈跟踪的结尾---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32毫秒超时,CancellationToken cancelledToken)
在Microsoft.VisualStudio.Web.Publish.PublishService.VsWebProjectPublish.<> c__DisplayClass43_0.< PublishAsync> b__2()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
---从之前引发异常的位置开始的堆栈跟踪---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
at Microsoft.VisualStudio.ApplicationCapabilities.Publish.ViewModel.ProfileSelectorViewModel.< RunPublishTaskAsync> d__127.MoveNext()
---> (内部异常#0)System.Exception:构建失败.检查输出"窗口以获取更多详细信息.< ---
==================
11/13/2018 1:28:28 PM
System.AggregateException: One or more errors occurred. ---> System.Exception: Build failed. Check the Output window for more details.
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Web.Publish.PublishService.VsWebProjectPublish.<>c__DisplayClass43_0.<PublishAsync>b__2()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.ApplicationCapabilities.Publish.ViewModel.ProfileSelectorViewModel.<RunPublishTaskAsync>d__127.MoveNext()
---> (Inner Exception #0) System.Exception: Build failed. Check the Output window for more details.<---
===================
```
Visual Studio中的错误输出:
Error output in Visual Studio:
```
严重性 代码说明 项目文件 Line 抑制状态
错误 Web部署任务失败. (无法将数据写入传输连接:远程主机强行关闭了现有连接.) simple-mvc 0
Severity CodeDescription ProjectFile LineSuppression State
Error Web deployment task failed. (Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.)simple-mvc 0
```
推荐答案
这篇关于通过Visual Studio将Web App部署到Azure时出现套接字错误(10054)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!