gpt4 book ai didi

visual-studio - 无法使用 Visual Studio 2019 部署我的 Azure Web 应用程序

转载 作者:行者123 更新时间:2023-12-01 03:03:36 26 4
gpt4 key购买 nike

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

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

Severity Code Description Project File Line
Suppression State Error Web deployment task failed. (Web Deploy experienced a connection problem with the server and had to terminate the connection. Contact your server administrator if the problem persists. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED.) SharePointAddIn3Web

这是 VS 的屏幕截图:-

enter image description here

这是诊断日志错误:-

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 Deploy task failed DeploymentBaseOptions does not contain a definition for UserAgent".

最佳答案

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

如果你正在运行fiddler之类的工具,你能停下来吗?关注solution在这里。

关于visual-studio - 无法使用 Visual Studio 2019 部署我的 Azure Web 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59592201/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com