自上个月以来,我在 Azure 函数应用程序上使用 Visual Studio 在 azure 上成功进行了部署,但突然在部署时开始出现错误。
Web deployment task failed. (Unable to perform the operation ("Create File") for the specified directory ("D:\home\site\wwwroot\bin\extensions.json")
我尝试了以下操作,但没有成功。
- 我重新启动了我的 Function 应用
- 重置发布 key
Updating file (MobiMatterUsers\bin\extensions.json). C:\Program Files\dotnet\sdk\2.2.105\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\PublishTargets\Microsoft.NET.Sdk.Publish.MSDeploy.targets(140,5): error : Web deployment task failed. (Unable to perform the operation ("Create File") for the specified directory ("D:\home\site\wwwroot\bin\extensions.json"). This can occur if the server administrator has not authorized this operation for the user credentials you are using.
请向我提供可能的解决方案并简要解释为什么我会收到此错误
最佳答案
在门户中使用 IAM 查看您是否拥有所需的权限。
然后重命名旧文件,因为它可能被进程锁定。
如果这不起作用,请检查本地部署是否仍然有效。
关于Azure 部署失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57771733/