我尝试使用 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 应用程序部署到 Azure(没有任何问题),因此也许我可以建议一些步骤来解决您的情况。
首先,请确保您拥有 Visual Studio 版本的最新更新。如果您还没有 VS2015,请获取 VS2015 的免费社区版来试用。
单击"file"| 后立即尝试部署一个全新的项目。新 |项目。
尝试使用多种方法进行部署:发布菜单、FTP、通过源代码管理进行持续部署。
尝试在不同的定价层和/或不同的区域创建新的网络应用。
希望您能够尝试上述一项或多项建议,让它发挥作用,然后在此处报告哪些有效,哪些无效。对于您可能需要帮助的任何特定步骤,请随时提出任何后续问题。
祝你好运!
关于visual-studio - 无法从 Visual Studio 部署 Web 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35813575/