Home > Net >  Azure App Services: assembly specified in application dependencies manifest (Microsoft.AspNetCore.Az
Azure App Services: assembly specified in application dependencies manifest (Microsoft.AspNetCore.Az

Time:09-21

I have a .net core 2.1 application that is hosted on Microsoft Azure App Service.

It worked for a couple of years and hasn't been updated in the last year.

But it stop with error in stdout:

Error:
  An assembly specified in the application dependencies manifest (Microsoft.AspNetCore.AzureAppServices.HostingStartup.deps.json) was not found:
    package: 'Microsoft.AspNetCore.AzureAppServices.HostingStartup', version: '2.2.0'
    path: 'lib/netcoreapp2.1/Microsoft.AspNetCore.AzureAppServices.HostingStartup.dll'

Also it still works well in IIS in a virtual machine.

CodePudding user response:

I've got the similar issue yesterday. After digging up into this and hadn't found solution, I've created support ticket to Microsoft.

They provided the following recommendations:

  1. Publish with:
<PublishWithAspNetCoreTargetManifest>False</PublishWithAspNetCoreTargetManifest>
  1. Upgrade to .NET Core 2.2

These steps helped me and application returned back to online.

Looks like they stopped support of .NET Core 2.1 version on their Azure App Services. Check this link for detalis:

https://devblogs.microsoft.com/dotnet/net-core-2-1-will-reach-end-of-support-on-august-21-2021/

PS: As far as I can tell, .NET Core 2.2 might be gone soon too. So I'm focusing to move my application to .NET Core 3.1 shortly.

  • Related