I am trying to host a .NET 5 ASP.NET Core Web Api in Azure. Unfortunately the app is not starting as the "Diagnose Problems" is also seeing. Looks like it's stuck in a starting loop, because I get the same messages in the Log stream over and over:
2020-11-13T11:25:43 Start 'Microsoft.AspNetCore.AzureAppServices.SiteExtension' site extension transform
2020-11-13T11:25:44 StartSection Executing InsertIfMissing (transform line 7, 23)
2020-11-13T11:25:44 on /configuration/system.webServer
2020-11-13T11:25:44 Applying to 'configuration' element (no source line info)
2020-11-13T11:25:44 EndSection Done executing InsertIfMissing
2020-11-13T11:25:44 StartSection Executing InsertIfMissing (transform line 8, 16)
2020-11-13T11:25:44 on /configuration/system.webServer/runtime
2020-11-13T11:25:44 Applying to 'system.webServer' element (no source line info)
2020-11-13T11:25:44 EndSection Done executing InsertIfMissing
2020-11-13T11:25:44 StartSection Executing InsertIfMissing (transform line 9, 31)
2020-11-13T11:25:44 on /configuration/system.webServer/runtime/environmentVariables
2020-11-13T11:25:44 Applying to 'runtime' element (no source line info)
2020-11-13T11:25:44 EndSection Done executing InsertIfMissing
2020-11-13T11:25:44 StartSection Executing InsertOrAppendAttribute (transform line 10, 406)
2020-11-13T11:25:44 on /configuration/system.webServer/runtime/environmentVariables/add[@name='DOTNET_ADDITIONAL_DEPS']
2020-11-13T11:25:44 Applying to 'environmentVariables' element (no source line info)
2020-11-13T11:25:44 EndSection Done executing InsertOrAppendAttribute
2020-11-13T11:25:44 StartSection Executing InsertOrAppendAttribute (transform line 11, 158)
2020-11-13T11:25:44 on /configuration/system.webServer/runtime/environmentVariables/add[@name='DOTNET_SHARED_STORE']
2020-11-13T11:25:44 Applying to 'environmentVariables' element (no source line info)
2020-11-13T11:25:44 EndSection Done executing InsertOrAppendAttribute
2020-11-13T11:25:44 StartSection Executing InsertOrAppendAttribute (transform line 12, 146)
2020-11-13T11:25:44 on /configuration/system.webServer/runtime/environmentVariables/add[@name='ASPNETCORE_HOSTINGSTARTUPASSEMBLIES']
2020-11-13T11:25:44 Applying to 'environmentVariables' element (no source line info)
2020-11-13T11:25:44 EndSection Done executing InsertOrAppendAttribute
2020-11-13T11:25:44 Successful 'C:\home\SiteExtensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\applicationHost.xdt' site extension transform
2020-11-13T11:25:44 sandboxproc.exe complete successfully. Elapsed = 1208.00 ms
2020-11-13T11:25:56 sandboxproc.exe D:\DWASFiles\Sites\fotoapp-api\Temp\applicationhost.config True True
2020-11-13T11:25:57 env XPROC_TYPENAME=Microsoft.Web.Hosting.Transformers.ApplicationHost.SiteExtensionHelper, Microsoft.Web.Hosting, Version=7.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
2020-11-13T11:25:57 env XPROC_METHODNAME=Transform
<these messages repeat endlessly>
I tried framework-dependent deployment (with .NET 5 runtime enabled in the app service) and also self-contained deployment.
I can't find better logs anywhere. Application Insights is not yet supported.
Requests to the api don't get through to the log stream. After ~2 minutes the server responds with "HTTP Error 503. The service is unavailable".