Missing dll on Azure App Service deployment
I'm trying to deploy my web API to Azure App Service, using code deployment to Linux server from GitHub actions
The solution has this structure (not its actual solution name, I can't reveal that part)
(Yes, weird, I know, but I can't change it now)
The solution builds and deploys to AAS just fine, but gives this error in the logs:
The application 'AppAPI.dll' does not exist.
Which is not correct as the publish output assemblies are Api.dll
and Data.dll
Then, I went to the configuration panel and added dotnet Api.dll
as the startup command, and re-ran the app, which then gives me:
The application 'Api.dll' does not exist.
Opening AAS's host SSH console shows that Api.dll
does exist in ~/site/wwwroot
(which also looks identical to the local publish output), so I truly have no idea what is happening, and would greatly appreciate any help20 Replies
The log stream (image #1) and the last few lines of the docker logs at
/api/vfs/LogFiles
(image #2)Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
Docker isn't used, I'm using the deploy code option rather than deploy container
The deploy job is as so
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
Yeah, it's net6, but AAS still has an option for it and the runtime exists as normal
TeBeCo
run
dotnet --info
on the app serviceQuoted by
<@689473681302224947> from #Missing dll on Azure App Service deployment (click here)
React with ❌ to remove this embed.
If I run
dotnet Api.dll
on the server console there, it does run properly by the way (except for the fact that it crashes because I forgot to allow the app through the database firewall)Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
I did nothing and it suddenly worked, I don't even know anymore
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
Initial deployments always had this issue, but at one point it started working (with unrelated errors, see https://discord.com/channels/143867839282020352/156079822454390784/1314127421464772678), but then somehow it regressed and no longer worked
Natashi
Deploying my web API to Azure App Service is giving me this in the logs:
My current hypothesis is that it's caused by the app running on .NET 6, but using EF Core packages at version 7.0.x, if so, any ideas on how to fix this short of upgrading the .NET version?
Quoted by
<@188850307629842432> from #web (click here)
React with ❌ to remove this embed.
and now currently it's working again, I truly have to idea what the fresh hell is happening here
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
Yes, I've already downgraded everything to 6.0.x
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
The deadline is next month, and that includes internal testing, I can't upgrade to the next major version right now
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View