Azure 部署失败

标签 azure .net-core

自上个月以来,我在 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")

我尝试了以下操作,但没有成功。

  1. 我重新启动了我的 Function 应用
  2. 重置发布 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/

相关文章:

添加自定义域后 Azure 网站返回 404 错误

c# - 使用适用于 Android 的 Azure 处理数据

reactjs - 如何使用 react 在 Fluent UI Detaillist 中添加分页

具有 Entity Framework Core 2.0 和 .NET 4.7 的 Azure 函数

Azure 表存储 : Ignoring a property of a TableEntity when using the Azure. Data.Tables 包

azure - Azure中如何分离开发和生产环境?

azure - 从azure应用程序服务运行tracert?

.net - 从 VS 2017 .NET Core 项目中的发布目录中排除文件

c# - 如何在 Net 5.0 版本中删除 '%AppName%.runtimeconfig.dev.json' 文件

.net - 如何将连接字符串从 appsettings.[name].json 传递到 .NET Core 中的 DbContext?