Visual studio 无法使用visual studio 2019部署我的Azure Web应用

Visual studio 无法使用visual studio 2019部署我的Azure Web应用,visual-studio,azure,azure-web-app-service,sharepoint-online,Visual Studio,Azure,Azure Web App Service,Sharepoint Online,我有Visual Studio 2019,我按照此链接中提到的步骤在SharePoint在线开发网站中创建了一个远程事件接收器 但是,当我尝试在visual studio中发布远程事件接收器时,出现以下错误:- 严重性代码说明项目文件行 抑制状态错误Web部署任务失败。(Web部署) 遇到服务器连接问题,必须终止 连接失败。如果出现问题,请与服务器管理员联系 持续。有关详细信息,请访问: .) SharePointAddIn3Web 以下是VS的屏幕截图:- 以下是诊断日志错误:- Syste

我有Visual Studio 2019,我按照此链接中提到的步骤在SharePoint在线开发网站中创建了一个远程事件接收器

但是,当我尝试在visual studio中发布远程事件接收器时,出现以下错误:-

严重性代码说明项目文件行
抑制状态错误Web部署任务失败。(Web部署) 遇到服务器连接问题,必须终止 连接失败。如果出现问题,请与服务器管理员联系 持续。有关详细信息,请访问: .) 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.

===================
System.AggregateException:发生一个或多个错误。-->系统异常:生成失败。有关更多详细信息,请查看“输出”窗口。
---内部异常堆栈跟踪的结束---
位于System.Threading.Tasks.Task.ThrowifeException(布尔值IncludeTaskCanceledException)
在System.Threading.Tasks.Task.Wait(Int32毫秒计时,CancellationToken CancellationToken)
在Microsoft.WebTools.Publish.PublishService.VsWebProjectPublish.c__DisplayClass43_0.b__3()中
在System.Threading.Tasks.Task`1.InnerInvoke()中
在System.Threading.Tasks.Task.Execute()中
---来自引发异常的上一个位置的堆栈结束跟踪---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
在Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel.d_u213.MoveNext()中

--->(内部异常#0)系统。异常:生成失败。有关详细信息,请查看输出窗口。如果没有连接(低速互联网),或者您正在并行运行使用网络的任何工具,则会发生此问题


如果您正在运行诸如fiddler之类的工具,您可以停止吗。按照此处的说明进行操作。

我遇到了这个问题,这是因为ProjectName的长度。 在VS的“输出”窗口中,我可以看到

无法将文件“System.Security.Cryptography.ProtectedData.dll”复制到“System.Security.Cryptography.ProtectedData.dll”。指定的路径和/或文件名太长。完全限定的文件名必须少于260个字符,目录名必须少于248个字符。 " 这是windows常见的错误。 然后我将文件夹移动到“D”驱动器来解决它


您应该查看VisualStudio中的输出窗口。最后一个错误是什么。

感谢您的回复,互联网速度很快,我没有使用FiddleReharper,您使用的是resharper吗?什么是appservice计划?再次感谢您的回复,azure应用服务计划是“ASP-n1-a5b4(S1:1)”您能试试吗?或者创建新的个人资料,并查看感谢链接,但我不确定我需要在何处添加此
True
尝试此与编辑相关的答案