简体   繁体   English

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

[英]Unable to deploy my Azure Web App using visual studio 2019

I have Visual Studio 2019 and i followed the steps mentioned in this link https://www.tatvasoft.com.au/blog/how-to-implement-remote-event-receiver-in-sharepoint-online/ to create a remote event receiver inside our SharePoint online development site.我有 Visual Studio 2019,我按照此链接中提到的步骤https://www.tatvasoft.com.au/blog/how-to-implement-remote-event-receiver-in-sharepoint-online/创建远程我们的 SharePoint 在线开发网站内的事件接收器。

But when i try to publish the remote event receiver inside visual studio, i got this error:-但是,当我尝试在 Visual Studio 中发布远程事件接收器时,出现此错误:-

Severity Code Description Project File Line严重性代码描述项目文件行
Suppression State Error Web deployment task failed.抑制状态错误 Web 部署任务失败。 (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 (Web Deploy 遇到了与服务器的连接问题,必须终止连接。如果问题仍然存在,请联系您的服务器管理员。了解更多信息: http : //go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED 。) SharePointAddIn3Web

Here is a screen shot from VS:-这是来自 VS 的屏幕截图:-

在此处输入图片说明

Here is the diagnostic log error:-这是诊断日志错误:-

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.

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

Can anyone advice why i am getting this error?谁能建议我为什么会收到此错误?

Thanks谢谢

EDIT编辑

Since my above development server has zscaler installed, so I moved the project to another development server which does not have zscaler and when i try to publish i got this error now由于我上面的开发服务器安装了 zscaler,所以我将项目移动到另一个没有 zscaler 的开发服务器,当我尝试发布时,我现在收到此错误

"MS Deploy task failed DeploymentBaseOptions does not contain a definition for UserAgent". “MS 部署任务失败 DeploymentBaseOptions 不包含 UserAgent 的定义”。

This issue happens when there is no connectivity (Low speed internet) or if you are running any tools parallelly which uses your network.当没有连接(低速互联网)或者您正在并行运行使用您的网络的任何工具时,就会发生此问题。

Can you stop if you are running any tool such as fiddler.如果您正在运行诸如 fiddler 之类的任何工具,您可以停止吗? Follow the solution here.按照此处的solution

This issue happened to me, it was because the ProjectName length.这个问题发生在我身上,这是因为 ProjectName 长度。 On "Output" window in VS i was able to see,在 VS 的“输出”窗口中,我能够看到,

"Unable to copy file "System.Security.Cryptography.ProtectedData.dll" to "System.Security.Cryptography.ProtectedData.dll". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. " it is a common error that happens for windows. “无法将文件“System.Security.Cryptography.ProtectedData.dll”复制到“System.Security.Cryptography.ProtectedData.dll”。指定的路径、文件名或两者都太长。完全限定的文件名必须小于超过 260 个字符,并且目录名必须少于 248 个字符。” 这是 Windows 发生的常见错误。 then i moved the folder to "D" drive to solve it.然后我将文件夹移动到“D”驱动器来解决它。

you should look at the Output window in Visual studio.您应该查看 Visual Studio 中的“输出”窗口。 whats the last error it gives.它给出的最后一个错误是什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法从Visual Studio部署Web应用程序 - Unable to deploy web app from Visual Studio Visual Studio 2019,对于 NodeJs Web 应用程序,发布到 Azure 失败 - Visual Studio 2019, Publish to Azure is failed for NodeJs Web App 从现有的 Azure Web 应用程序创建 Visual Studio 2019 项目 - Create Visual Studio 2019 project from existing Azure Web App 无法使用 Visual Studio 2019 和 Azure 发布 web 应用程序 - cannot Publish web app with Visual Studio 2019 and Azure 如何使用Visual Studio但不使用Azure模拟器将现有的Web应用程序项目部署到Azure? - How do I deploy an existing web app project to Azure using Visual Studio but no Azure Emulator? 能否使用 Visual Studio Web Publish 将单个 aspx.cs 文件部署到 Azure Web App(Azure 运行时问题) - Can you deploy single aspx.cs file using Visual Studio Web Publish to Azure Web App (Azure runtime issue) 如何使用 Visual Studio Online 在 Azure VM 中部署 Web 应用程序 - How deploy Web application in Azure VM using Visual studio online Visual Studio 2019 Azure 应用程序未发布 - Visual Studio 2019 Azure App not getting published 从Visual Studio Web部署到Azure - Web deploy to Azure from visual studio 无法构建由Visual Studio 2019创建的Dockerfile-Docker和Azure - Unable to build a Dockerfile created by Visual Studio 2019 - Docker and Azure
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM