首页 > 解决方案 > 无法使用 Visual Studio 2019 部署我的 Azure Web 应用程序

问题描述

我有 Visual Studio 2019,并按照此链接https://www.tatvasoft.com.au/blog/how-to-implement-remote-event-receiver-in-sharepoint-online/中提到的步骤创建远程我们的 SharePoint 在线开发站点内的事件接收器。

但是当我尝试在 Visual Studio 中发布远程事件接收器时,我收到了这个错误:-

严重性代码 描述 项目文件行
抑制状态错误 Web 部署任务失败。(Web Deploy 遇到与服务器的连接问题,不得不终止连接。如果问题仍然存在,请联系您的服务器管理员。了解更多信息,请访问:http: //go.microsoft.com/fwlink/ ?LinkId=221672#ERROR_CONNECTION_TERMINATED 。) SharePointAddIn3Web

这是VS的屏幕截图:-

在此处输入图像描述

这是诊断日志错误:-

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.WebTools.Publish.PublishService.VsWebProjectPublish.<>c__DisplayClass43_0.<PublishAsync>b__3()
   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.Publish.Framework.ViewModel.ProfileSelectorViewModel.<RunPublishTaskAsync>d__213.MoveNext()
---> (Inner Exception #0) System.Exception: Build failed. Check the Output window for more details.<---

System.Exception: Build failed. Check the Output window for more details.

===================

谁能建议我为什么会收到此错误?

谢谢

编辑

由于我上面的开发服务器安装了 zscaler,所以我将项目移动到另一个没有 zscaler 的开发服务器,当我尝试发布时,我现在得到了这个错误

“MS 部署任务失败 DeploymentBaseOptions 不包含 UserAgent 的定义”。

标签: visual-studioazureazure-web-app-servicesharepoint-online

解决方案


当没有连接(低速互联网)或您正在并行运行任何使用您的网络的工具时,会发生此问题。

如果您正在运行诸如 fiddler 之类的任何工具,您可以停止吗?按照solution这里。


推荐阅读