0

I updated my ASP.NET Core web application from .NET Core 5 to .NET Core 6. This seems to work fine locally.

I then checked my changes into GitHub, whereupon a GitHub action builds and deploy this to my App Service on Azure. This did not work the first time, because my YAML file still referenced .NET 5. I changed that and tried again. However, I then got a different error:

Error: EISDIR: illegal operation on a directory, open '/home/site/wwwroot/wwwroot/Identity/lib/bootstrap/LICENSE'

I found a post describing this very error and attempted to follow the instructions suggested by Trevor Davis (https://stackoverflow.com/a/70136206/98422), which was to delete the contents of the /home/site/wwwroot/ folder in my deployed App Service and re-deploy.

However, having done so, I now get a different error when trying to deploy the website:

Error: ENOENT: no such file or directory, open '/home/site/wwwroot/Azure.Storage.Blobs.dll'

An error has occurred during web site deployment.

Kudu Sync failed

...and now I've no idea how to fix it. And my website is down :-(

Can anyone please advise?

Gary McGill
  • 26,400
  • 25
  • 118
  • 202

3 Answers3

1

Well, I hope this helps someone else. I discovered that simply stopping the website while the deploy was in progress was enough to make it work again.

Two days needless downtime... :-(

Gary McGill
  • 26,400
  • 25
  • 118
  • 202
0

I removed all references to identity as I wasn't using it, this got the deployment working. Not sure why..

Will
  • 367
  • 3
  • 4
0

I my situation, the underlying issue seemed to be updating Microsoft.AspNetCore.Identity.UI from version 5.* to version 6+. What worked for me was just reverting Microsoft.AspNetCore.Identity.UI to 5.0.17.

JiffyLueb
  • 426
  • 3
  • 10
  • @JiffyLeub Did you manage to get your website to successfully deploy with a .Net 6.0 version of the AspNetCore.Identity packages installed? – Goober Nov 07 '22 at 13:33
  • @Goober I have not. I tried a few solutions mentioned in other SO threads, but nothing yet has worked. – JiffyLueb Nov 08 '22 at 18:50