2016-03-05 125 views
0

我想使用Visual Studio部署Azure Web应用程序,但收到以下错误。我已经部署了这个应用程序和其他很多没有问题的人。无法从Visual Studio部署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) 

我在我的所有网络应用程序上都收到错误,可能是错误的?

+0

您正在使用哪个版本的Visual Studio? – juvchan

回答

0

我已经很频繁地向Azure部署不同类型的Web应用程序(没有任何问题),所以也许我可以建议一些步骤来排查您的情况。

  1. 首先,确保您的Visual Studio版本具有最新更新。如果你还没有VS2015,可以免费试用VS2015社区版。

  2. 尝试在单击“文件”|“文件”后立即部署一个全新的项目。新增|项目。

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

  4. 尝试在不同的定价层和/或不同地区创建新的Web应用程序。

希望您可以通过尝试一个或多个上述建议来实现它,然后在此处报告有关哪些工作以及哪些工作没有成功。随时询问任何后续问题,您可能需要帮助的任何特定步骤。

祝你好运!

0

如果通过Visual Studio发布更新Web应用程序,有时会添加到@Shahed,如果正在运行的进程正在使用某个文件,它可能会失败。我发现,如果我重新启动门户网站上的Web应用程序,VS Publish的工作就像一个魅力。

相关问题