visual-studio - 无法使用 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 的定义”。
解决方案
当没有连接(低速互联网)或您正在并行运行任何使用您的网络的工具时,会发生此问题。
如果您正在运行诸如 fiddler 之类的任何工具,您可以停止吗?按照solution
这里。
推荐阅读
- xamarin.forms - Xamarin Forms:如何从 SwipeStarted 事件中获取 SwipeDirection 值?
- perl - 如何让 perl 网络爬虫像 wget 一样进行“广度优先”检索?
- mysql - 在 MySQL 中创建一个将数据显示为报告的查询
- php - jQuery 显示功能
- python - 我能够在 heroku 上构建我的 django web 应用程序,但是在启动它时显示这些错误(错误日志如下所示)
- java - java.lang.LIKE_FOR_NO_REASON.ArrayIndexOutOfBoundsException
- laravel - 如何解决 Laravel 中的自动注销问题
- python - 无法使用 XPATH 在 Facebook 中找到搜索栏元素
- ipython - 有人可以解释一下“!”是怎么做的吗?和“%%”命令在 python 中工作?
- swift - MCBrowserViewController 不应该在浏览器中收到此回调消息?