An assembly specified in the application dependencies manifest (Microsoft.AspNetCore.AzureAppServices.HostingStartup.deps.json) was not found

Jean-Philippe Berger 6 Reputation points
2021-09-18T15:45:25.917+00:00

Hello,

I have a net core app service that has been running fine until yesterday.

It works when I run it locally, but azure fails to start it now.

![133209-image.png][1]

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'

I am not sure how I am supposed to fix this, since it seems to be on the azure side.

Thank you,
Jean-Philippe

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,207 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,288 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,956 questions
{count} vote

1 answer

Sort by: Most helpful
  1. ajkuma 22,521 Reputation points Microsoft Employee
    2021-09-21T08:42:27.973+00:00

    @Jean-Philippe Berger , Thanks to @Takahito Iwasa for sharing the SO discussion thread, I was also checking/discussing on this internally.

    To benefit the community, copying the steps suggested for fix (which worked for others):

    1.Publish with:

    <PublishWithAspNetCoreTargetManifest>False</PublishWithAspNetCoreTargetManifest>

    2.Upgrade to .NET Core 2.2

    See this blog - net-core-2-1-will-reach-end-of-support-on-august-21-2021 for more info.

    If you still have further issues, please let us know I'll follow-up with you.

    Apologies for any inconvenience with! Thanks for your patience.

    2 people found this answer helpful.