Azure App Service does not have .NET6 installed

Gabor Varga 21 Reputation points
2022-03-10T17:20:55.7+00:00

Hi,

I just have deployed a .NET 6 application to an Azure App Service, but right after the deployment I have the following error message in the Log Stream:
*2022-03-10T17:34:01.404315637Z _____
2022-03-10T17:34:01.404349837Z / _ \ __________ _________ ____
2022-03-10T17:34:01.404355037Z / /_\ ___ / | _ __ _/ __ \
2022-03-10T17:34:01.404359237Z / | / /| | /| | /\ /
2022-03-10T17:34:01.404363537Z _
|__ /_____ ____/ || _ >
2022-03-10T17:34:01.404368137Z / / /
2022-03-10T17:34:01.404372437Z A P P S E R V I C E O N L I N U X
2022-03-10T17:34:01.404376937Z
2022-03-10T17:34:01.404380937Z Documentation: http://aka.ms/webapp-linux
2022-03-10T17:34:01.404385237Z Dotnet quickstart: https://aka.ms/dotnet-qs
2022-03-10T17:34:01.404389337Z ASP .NETCore Version: 6.0.0
2022-03-10T17:34:01.404393338Z Note: Any data outside '/home' is not persisted
2022-03-10T17:34:01.448537546Z Running oryx create-script -appPath /home/site/wwwroot -output /opt/startup/startup.sh -defaultAppFilePath /defaulthome/hostingstart/hostingstart.dll -bindPort 8080 -userStartupCommand 'dotnet Test_Application.dll'
2022-03-10T17:34:01.456494737Z Cound not find build manifest file at '/home/site/wwwroot/oryx-manifest.toml'
2022-03-10T17:34:01.456521538Z Could not find operation ID in manifest. Generating an operation id...
2022-03-10T17:34:01.456526138Z Build Operation ID: 2ce0ee03-46cb-404e-95e2-d7056f80e5d4
2022-03-10T17:34:07.458937135Z
2022-03-10T17:34:07.458979436Z Agent extension
2022-03-10T17:34:07.458988236Z Before if loop >> DotNet Runtime
2022-03-10T17:34:13.459523992Z DotNet Runtime 6.0Writing output script to '/opt/startup/startup.sh'
2022-03-10T17:34:19.467216938Z Running user provided startup command...
2022-03-10T17:34:19.473522607Z Could not execute because the application was not found or a compatible .NET SDK is not installed.
2022-03-10T17:34:19.473549208Z Possible reasons for this include:
2022-03-10T17:34:19.473555608Z * You intended to execute a .NET program:
2022-03-10T17:34:19.473560608Z The application 'Test_Application.dll' does not exist.
2022-03-10T17:34:19.473565308Z * You intended to execute a .NET SDK command:
2022-03-10T17:34:19.473569608Z It was not possible to find any installed .NET SDKs.
2022-03-10T17:34:19.473574008Z Install a .NET SDK from:
2022-03-10T17:34:19.473578508Z https://aka.ms/dotnet-download\*

This is from Log stream:
*2022-03-01T12:17:45.222Z INFO - Container myappservice-non-prod-aps_0_33a0a2c7 for site myappservice-non-prod-aps initialized successfully and is ready to serve requests.
2022-03-01T12:32:35.612Z INFO - Recycling container because of AppSettingsChange and isMainSite = True
2022-03-01T12:32:35.623Z INFO - Starting container for site
2022-03-01T12:32:35.623Z INFO - docker run -d -p 8080:8080 --name myappservice-non-prod-aps_1_982b2982 -e WEBSITE_SITE_NAME=myappservice-non-prod-aps -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=myappservice-non-prod-aps.azurewebsites.net -e WEBSITE_INSTANCE_ID=59a138cde462da5311cd196f76bac28953c332522546684d6109711df53d819e appsvc/dotnetcore:6.0_20211123.1
2022-03-01T12:32:35.623Z INFO - Logging is not enabled for this container.Please use https://aka.ms/linux-diagnostics to enable logging to see container logs here.
2022-03-01T12:32:38.458Z INFO - Initiating warmup request to container myappservice-non-prod-aps_1_982b2982 for site myappservice-non-prod-aps
2022-03-01T12:32:53.539Z INFO - Waiting for response to warmup request for container myappservice-non-prod-aps_1_982b2982. Elapsed time = 15.0811278 sec
2022-03-01T12:32:56.605Z INFO - Container myappservice-non-prod-aps_1_982b2982 for site myappservice-non-prod-aps initialized successfully and is ready to serve requests.
/home/LogFiles/2022_03_10_ln1sdlwk00000R_default_docker.log (https://myappservice-non-prod-aps.scm.azurewebsites.net/api/vfs/LogFiles/2022_03_10_ln1sdlwk00000R_default_docker.log)
2022-03-10T17:39:39.312835693Z Running user provided startup command...
2022-03-10T17:39:39.318705557Z Could not execute because the application was not found or a compatible .NET SDK is not installed.
2022-03-10T17:39:39.318732057Z Possible reasons for this include:
2022-03-10T17:39:39.318738157Z * You intended to execute a .NET program:
2022-03-10T17:39:39.318743057Z The application 'Test_Application.dll' does not exist.
2022-03-10T17:39:39.318748057Z * You intended to execute a .NET SDK command:
2022-03-10T17:39:39.318752957Z It was not possible to find any installed .NET SDKs.
2022-03-10T17:39:39.318757657Z Install a .NET SDK from:
2022-03-10T17:39:39.318762057Z https://aka.ms/dotnet-download
/home/LogFiles/2022_03_10_ln1sdlwk00000R_docker.log (https://myappservice-non-prod-aps.scm.azurewebsites.net/api/vfs/LogFiles/2022_03_10_ln1sdlwk00000R_docker.log)
2022-03-10T17:34:20.047Z ERROR - Container myappservice-non-prod-aps_0_9a02a720 didn't respond to HTTP pings on port: 8080, failing site start. See container logs for debugging.
2022-03-10T17:34:20.051Z INFO - Stopping site myappservice-non-prod-aps because it failed during startup.
2022-03-10T17:39:20.257Z INFO - Starting container for site
2022-03-10T17:39:20.259Z INFO - docker run -d -p 8080:8080 --name myappservice-non-prod-aps_0_5ff8e0b3 -e WEBSITE_SITE_NAME=myappservice-non-prod-aps -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=myappservice-non-prod-aps.azurewebsites.net -e WEBSITE_INSTANCE_ID=59a138cde462da5311cd196f76bac28953c332522546684d6109711df53d819e -e HTTP_LOGGING_ENABLED=1 appsvc/dotnetcore:6.0_20211123.1 dotnet Test_Application.dll
2022-03-10T17:39:21.822Z INFO - Initiating warmup request to container myappservice-non-prod-aps_0_5ff8e0b3 for site myappservice-non-prod-aps
2022-03-10T17:39:40.161Z INFO - Waiting for response to warmup request for container myappservice-non-prod-aps_0_5ff8e0b3. Elapsed time = 18.3391056 sec
2022-03-10T17:39:40.168Z ERROR - Container myappservice-non-prod-aps_0_5ff8e0b3 for site myappservice-non-prod-aps has exited, failing site start
2022-03-10T17:39:40.171Z ERROR - Container myappservice-non-prod-aps_0_5ff8e0b3 didn't respond to HTTP pings on port: 8080, failing site start. See container logs for debugging.
2022-03-10T17:39:40.174Z INFO - Stopping site myappservice-non-prod-aps because it failed during startup.*

The environment:

  • Private endpoint configured
  • VNET Route All configured
  • All traffics are routed via Azure Firewall (there are no any outgoing packets - I thought maybe it wanted to download .NET 6)
  • Custom DNS servers configured for the app service
  • Base system: Linux
  • Project: .NET 6 LTS

Any idea?

Thanks!
Gabor

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,360 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,992 questions
{count} votes