[英]Visual Studio 2019, Publish to Azure is failed for NodeJs Web App
Node Js publish from Visual Studio 2019 stopped working.从 Visual Studio 2019 发布的 Node Js 停止工作。 there was no update on VS or code configurations.
VS 或代码配置没有更新。
Error dump from temp file :临时文件中的错误转储:
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()
===================
What I tried:我尝试了什么:
Anyway to resolve this?无论如何要解决这个问题?
Workaround: Using Deployment center local git解决方法:使用部署中心本地 git
Usually, emptying the C:\Users\%USERPROFILE%\AppData\Local\Microsoft\VisualStudio
and C:\Users\%USERPROFILE%\AppData\Local\Microsoft\VSCommon
folders should fix your publish error.通常,清空
C:\Users\%USERPROFILE%\AppData\Local\Microsoft\VisualStudio
和C:\Users\%USERPROFILE%\AppData\Local\Microsoft\VSCommon
文件夹应该可以修复您的发布错误。 If not, try repairing your VS installation or re-installing the latest version available.如果没有,请尝试修复您的 VS 安装或重新安装可用的最新版本。
This SO post highlights a few other workarounds to try.这篇SO 帖子重点介绍了其他一些可以尝试的解决方法。 If the problem still persists, please report it onDeveloper Community so the VS Team can investigate further.
如果问题仍然存在,请在开发者社区报告,以便 VS 团队进一步调查。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.