gpt4 book ai didi

.net - Azure 应用服务 .net6 部署 - 错误 : EISDIR: illegal operation on a directory, 打开 '/home/site/wwwroot/wwwroot/Identity/lib/bootstrap/LICENSE'

转载 作者:行者123 更新时间:2023-12-02 22:49:54 27 4
gpt4 key购买 nike

我将我的 Asp.net core Blazor WebAssembly 应用程序更新到了 .net 6。一切都很好,但是从 github 操作进行的部署不起作用并抛出此错误:

...
Copying file: 'Microsoft.AspNetCore.ApiAuthorization.IdentityServer.dll'
Copying file: 'Microsoft.AspNetCore.Authentication.JwtBearer.dll'
Omitting next output lines...
Error: EISDIR: illegal operation on a directory, open '/home/site/wwwroot/wwwroot/Identity/lib/bootstrap/LICENSE'
An error has occurred during web site deployment.
Kudu Sync failed
\n/opt/Kudu/Scripts/starter.sh "/home/site/deployments/tools/deploy.sh"
Error: Failed to deploy web package to App Service.
Error: Deployment Failed with Error: Package deployment using ZIP Deploy failed. Refer logs for more details.

这里可能有什么问题?

  • 应用程序可在本地运行
  • 我在配置中将 Azure 应用更新为 .net6
  • 我尝试重新启动应用
  • 该应用位于美国中部地区

编辑/解决方案:

以前许可证文件的路径是:/home/site/wwwroot/wwwroot/Identity/lib/bootstrap/LICENSE/LICENSE 新文件没有 LICENSE 目录。因此,当新版本的应用程序到达时,它会尝试更新许可证文件,该文件实际上是一个目录。删除 LICENSE/LICENSE 有所帮助。

最佳答案

我最终删除了/home/site/wwwroot/的内容来解决这个问题。我还需要在站点配置中将配置更新为 .NET 6,并在站点开始工作之前重新部署。

关于.net - Azure 应用服务 .net6 部署 - 错误 : EISDIR: illegal operation on a directory, 打开 '/home/site/wwwroot/wwwroot/Identity/lib/bootstrap/LICENSE',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69967124/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com