Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Yes. That is a likely cause.
Azure App Service doesn’t deploy ASP.NET Core preview releases by default. A 500.31 startup failure commonly occurs when the required Microsoft.NETCore.App or Microsoft.AspNetCore.App runtime isn’t installed on the target machine. If the app was updated in the pipeline to target .NET 11 preview 6, the App Service instance can fail at startup if that preview runtime isn’t available there.
Relevant checks and fixes:
- Confirm the app is targeting a preview runtime.
- Check the app’s
.runtimeconfig.jsonor project target/runtime settings. - If it requests a preview
Microsoft.AspNetCore.Appversion, that matches the documented 500.31/handler load failure pattern when the framework version isn’t present.
- Check the app’s
- If the app must run on a preview runtime, install the matching preview site extension.
- For preview runtimes on Azure App Service, install only one site extension that matches the app bitness: x86 or x64.
- Do not install both x86 and x64 preview runtime site extensions.
- After installing or removing the incorrect one, restart the app and wait a few seconds.
- Verify process architecture matches the deployed app.
- If the app is x64, use the x64 preview runtime extension and ensure the App Service process bitness matches.
- Architecture mismatch can also cause startup failures.
- If preview runtime support is not required, use a supported installed runtime instead.
- Retarget the app to a .NET version available on App Service.
- Or publish as a self-contained deployment so the app carries its own runtime.
- Collect startup diagnostics to confirm.
- Check Application Event Log entries.
- Check ASP.NET Core Module stdout/debug logs.
- These logs typically show the missing framework/version that the app requested.
If the deployment succeeded but the site fails only at runtime, that strongly points to runtime availability on App Service rather than a pipeline build problem.
References: