visual-studio - 无法从 Visual Studio 部署 Web 应用程序

标签 visual-studio azure azure-web-app-service

我尝试使用 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(没有任何问题),因此也许我可以建议一些步骤来解决您的情况。

  1. 首先,请确保您拥有 Visual Studio 版本的最新更新。如果您还没有 VS2015,请获取 VS2015 的免费社区版来试用。

  2. 单击"file"| 后立即尝试部署一个全新的项目。新 |项目。

  3. 尝试使用多种方法进行部署:发布菜单、FTP、通过源代码管理进行持续部署。

  4. 尝试在不同的定价层和/或不同的区域创建新的网络应用。

希望您能够尝试上述一项或多项建议,让它发挥作用,然后在此处报告哪些有效,哪些无效。对于您可能需要帮助的任何特定步骤,请随时提出任何后续问题。

祝你好运!

关于visual-studio - 无法从 Visual Studio 部署 Web 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35813575/

相关文章:

azure - 无法配置 Azure 事件中心生产者

azure - 如何在Azure Web App盒子上执行appcmd?

azure - 如何将基于 browserHistory 的 React 应用程序部署到 Azure 应用服务?

c# - 如何从 Visual Studio 2013 调试 .NET 控制台应用程序

c - 从每行包含一个值的“numbers.txt”中读取,然后用C语言按顺序输出这些数字(冒泡排序)

c# - Mvc 起始页使用带有域的 azure 上的区域

c# - 事务性 CloudBlob

asp.net - 将 ASP.NET 应用程序部署到 Azure Web 应用程序,无需 .NET Core 和 Visual Studio

visual-studio - 什么Visual Studio for .NET 1.0 web 开发?

c# - Application.Current.Shutdown() 没有杀死我的应用程序