question

dansiegel avatar image
0 Votes"
dansiegel asked ·

.NET Core 3.1 not recognized by Web Job

I have a Web API and Web Job running .NET Core 3.1. While the Web API is running fine the Web Job will not start. When I went into the logs I discovered that it cannot find the .NET Core 3.1 runtime. You'll notice here that I do actually have the runtime extension installed.

installed extensions

But as you'll notice here in the logs, it cannot see the runtime. I have restarted the Web App more than a few times, and had to do it once just to get the Web API to pick it up. Even leaving it over night and restarting the Web Job still cannot find the runtime.

 [12/06/2019 14:36:42 > 4e52af: SYS INFO] Run script 'MyProject.Worker.exe' with script host - 'WindowsScriptHost'
 [12/06/2019 14:36:42 > 4e52af: SYS INFO] Status changed to Running
 [12/06/2019 14:36:42 > 4e52af: ERR ] It was not possible to find any compatible framework version
 [12/06/2019 14:36:42 > 4e52af: ERR ] The specified framework 'Microsoft.NETCore.App', version '3.1.0' was not found.
 [12/06/2019 14:36:42 > 4e52af: ERR ]   - The following frameworks were found:
 [12/06/2019 14:36:42 > 4e52af: ERR ]       2.2.7 at [D:\Program Files\dotnet\shared\Microsoft.NETCore.App]
 [12/06/2019 14:36:42 > 4e52af: ERR ]       3.0.0 at [D:\Program Files\dotnet\shared\Microsoft.NETCore.App]
 [12/06/2019 14:36:42 > 4e52af: ERR ] 
 [12/06/2019 14:36:42 > 4e52af: ERR ] You can resolve the problem by installing the specified framework and/or SDK.
 [12/06/2019 14:36:42 > 4e52af: ERR ] 
 [12/06/2019 14:36:42 > 4e52af: ERR ] The .NET Core frameworks can be found at:
 [12/06/2019 14:36:42 > 4e52af: ERR ]   - https://aka.ms/dotnet-download
 [12/06/2019 14:36:42 > 4e52af: SYS ERR ] Job failed due to exit code -2147450730
 [12/06/2019 14:36:42 > 4e52af: SYS INFO] Process went down, waiting for 60 seconds
 [12/06/2019 14:36:42 > 4e52af: SYS INFO] Status changed to PendingRestart


azure-webappsazure-webapps-webjobs
· 5
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What region are you deploying your web job to @dansiegel? Also is your web api and web job being deployed to the same app service? Have you tried deploying your web job as a self-contained app?

0 Votes 0 ·

the app service is in US West

0 Votes 0 ·

I should add I did eventually solve the issue by simply deploying the runtime along with the worker service... but it's really quite crazy that I had to do that since I specifically installed the 3.1 runtime via an extension and my web app worked just fine but the worker did not.

0 Votes 0 ·

@dansiegel which region are deploying to?

0 Votes 0 ·

what has the regio to do with anything please?

0 Votes 0 ·
JeremyBrooks-4731 avatar image
0 Votes"
JeremyBrooks-4731 answered ·

In the future you can check the status of the role out using the link below:
https://aspnetcoreon.azurewebsites.net/#

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

woeterman94 avatar image
0 Votes"
woeterman94 answered ·

I resolved the issue by disabling the "Set .NET Core version to 3.1.100" task in azure devops.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.