FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

Jorge Ricardo Pacheco Cruz 21 Reputation points
2023-09-08T15:48:39.27+00:00

Hello, I have 2 web apps hosted on Azure, both applications have the netcoreapp2.1 target, both applications have not been modified in the last 5 months, 3 days ago, one of the apps started to crash and does not respond.

The error shown by the application that started to fail is that it cannot find dlls.

FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

The service of my Azure account is only hosting, I do not have access to the server where my application is hosted, what do I do now? thanks

Developer technologies | ASP.NET | ASP.NET Core
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,976 questions
Developer technologies | .NET | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 78,161 Reputation points Volunteer Moderator
    2023-09-08T17:25:48.2166667+00:00

    azure is always updating its data centers. its a rolling update, so not all server are updated at the same time. in general the update does not break anything. but because you are running unsupported software, you are basically on your own to determine the issue.

    your best option is to upgrade to a supported version. core

    note: 2.1 was the only version that supported 4.* assemblies. you will need to replace the dependent assembly with a .net standard or core version.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.