簡體   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