簡體   English   中英

無法從Visual Studio部署Web應用程序

[英]Unable to deploy web app from Visual Studio

我正在嘗試使用Visual Studio部署Azure Web應用程序,但收到以下錯誤。 過去,我已經部署了這個應用程序以及許多其他應用程序,沒有出現任何問題。

Web deployment task failed. ((5/3/2016 9:40:16 PM) An error occurred when the request was processed on the remote computer.)

(5/3/2016 9:40:16 PM) An error occurred when the request was processed on the remote computer.
An error was encountered when processing operation 'Create File' on 'D:\home\site\wwwroot\ApplicationInsights.config'.
The error code was 0x80070013.
The media is write protected.

  at Microsoft.Web.Deployment.NativeMethods.RaiseIOExceptionFromErrorCode(Win32ErrorCode errorCode, String maybeFullPath)
  at Microsoft.Web.Deployment.FileStreamEx.CreateInstance(String path, FileMode fileMode, FileAccess fileAccess, FileShare fileShare, Nullable`1 fileLength)
  at Microsoft.Web.Deployment.FilePathProviderBase.Add(DeploymentObject source, Boolean whatIf) 

我在所有Web應用程序上都遇到了錯誤,這可能是什么問題?

我已經經常將各種類型的Web應用程序部署到Azure(沒有任何問題),因此也許我可以建議一些步驟來解決您的情況。

  1. 首先,請確保您具有適用於您的Visual Studio版本的最新更新。 如果您還沒有VS2015,請獲取免費的VS2015社區版以嘗試安裝。

  2. 單擊文件|立即嘗試部署全新項目。 新的| 項目。

  3. 嘗試使用多種方法進行部署:發布菜單,FTP,通過源代碼控制進行連續部署。

  4. 嘗試在不同的定價層和/或不同的區域中創建新的Web應用程序。

希望您能夠嘗試上述建議中的一項或多項,然后在此處向您報告哪些有效,哪些無效。 隨時隨地詢問您可能需要幫助的任何后續問題。

祝你好運!

有時,如果添加到@Shahed,則通過Visual Studio Publish更新Web應用程序,則如果正在運行的進程正在使用某些文件 ,則該應用程序可能會失敗。 我發現,如果我在門戶網站上重新啟動 Web應用程序,則VS Publish就像一個魅力。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM