繁体   English   中英

Visual Studio 2019,对于 NodeJs Web 应用程序,发布到 Azure 失败

[英]Visual Studio 2019, Publish to Azure is failed for NodeJs Web App

从 Visual Studio 2019 发布的 Node Js 停止工作。 VS 或代码配置没有更新。

在此处输入图像描述

临时文件中的错误转储

27-Nov-20 09:58:33
System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel.CanShowRestoreAction()
   at Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel.RebuildCrudProfileCommands(IProfileVisual profile)
   at Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel.set_SelectedProfile(IProfileVisual value)
   at Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel.Initialize(ProfileSelectorUserControl view)
   at Microsoft.Publish.Framework.Provider.DefaultPublishTabProvider.<CreateViewAsync>d__13.MoveNext()
--- 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.Provider.PublishProjectDesignerTabProvider.<CreateViewAsync>d__7.MoveNext()
===================

我尝试了什么:

  1. Clearing.vs,数据,bin
  2. 清除温度但没有任何效果。

无论如何要解决这个问题?

解决方法:使用部署中心本地 git

通常,清空C:\Users\%USERPROFILE%\AppData\Local\Microsoft\VisualStudioC:\Users\%USERPROFILE%\AppData\Local\Microsoft\VSCommon文件夹应该可以修复您的发布错误。 如果没有,请尝试修复您的 VS 安装或重新安装可用的最新版本。

这篇SO 帖子重点介绍了其他一些可以尝试的解决方法。 如果问题仍然存在,请在开发者社区报告,以便 VS 团队进一步调查。

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM