1
votes

Trying to install .NET CORE 3.0 extension for my App Services inside my App Service Environment (ASE):

Using the portal:

 A

I get

enter image description here

However the extension is not installed!

How to get this to work?

Please note: Azure App Services running in App Service Environment

3

3 Answers

4
votes

To ensure the extension is installed, in Kudu, check the directory in D:\home\SiteExtensions\AspNetCoreRuntime.3.0.x64.

enter image description here

Once confirmed you can edit your web.config to point to the site extension as follows as a workaround

<aspNetCore processPath="D:\home\SiteExtensions\AspNetCoreRuntime.3.0.x86\dotnet" arguments=".\<project output>.dll" stdoutLogEnabled="true" stdoutLogFile="\\?\%home%\LogFiles\stdout" hostingModel="inprocess" />

See https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-3.0#webconfig-file for more info.

It does seem this should be handled by the extension itself so there could be a problem there. Nonetheless, .NET Core 3 should be deployed in the next week or so as an available runtime.

EDIT:

You add the 'Use .NET Core' task in Azure Pipelines enter image description here to install the 3.0 SDK. This, in conjunction with --self-contained true --runtime <RID> in the Publish task and <AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel> in your csproj is an alternative to using the extension.

0
votes

Firstly if you could not install it you could go to you app kudu site to install it.

Secondly if you just want to make your .net core 3 web run in Azure, actually there is a tutorial about how to deploy ASP.NET Core 3.0 to Azure App Service.

I test these two, they all could work. Just if you deploy with Framework-Dependent way, it will show you a error message like the below pic, however the web will work.

enter image description here

Note:With Framework-Dependent way, you have to install the extension, and if you use Self-Contained way, you don't have to do it.

0
votes

You have to update all the extensions that require updates before downloading a new extension in your Azure app service.