突然,Web部署开始失败.
Could not find file 'D:\home\site\wwwroot\App_Offline.htm'.
Run Code Online (Sandbox Code Playgroud)
我停止了服务,但部署仍然失败.
当我尝试从Kudu PowerShell UI中的wwwroot删除任何文件时,我收到错误"404 file not find",但刷新后仍然显示该文件.当我试图直接在powershell中删除文件时,我收到错误
Cannot remove item D:\home\site\wwwroot\Azure.Storage.dll: Invalid access to memory location.
At line:1 char:1
+ del .\Azure.Storage.dll
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (D:\home\site\wwwroot\Azure.Storage.
dll:FileInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell
.Commands.RemoveItemCommand
Run Code Online (Sandbox Code Playgroud)
我删除了该服务,重新创建它,并且Visual Studio中的第一个部署是Ok.但第二天部署再次失败.这些部署之间唯一的事情就是从VSTS部署.但我之前能够以任何顺序从VSTS和Visual Studio部署而没有任何问题.
我是该应用服务的所有者.
部署日志.
(2018-08-06 13:05:03) An error occurred when the request was processed on the remote computer.
Could not find file 'D:\home\site\wwwroot\App_Offline.htm'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 …Run Code Online (Sandbox Code Playgroud)