We app is not starting up when we upgrade Azure.Identity Nuget from 1.9 to 1.10.2. We are getting error "500.31 – ANCM Failed to Find Native Dependencies"

Madhu Kiran, C 0 Reputation points
2023-12-20T11:01:00.1633333+00:00

We are upgrading Azure.Identity nuget package from 1.9.0 to 1.10.2 in a .net core Azure web application.
application is unable to start. The moment we upgrade the package web app is throwing below error

User's image

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,968 questions
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 17,741 Reputation points Microsoft Employee Moderator
    2024-01-10T04:20:37.2733333+00:00

    @Madhu Kiran, C The error message indicates that the application is unable to locate the required dependencies. The log message you provided shows that the application is looking for the 'aspnetcorev2_inprocess.dll' file, which is required to run the application. The error message also suggests that the required .NET framework version 6.0 is present.

    Based on the error message, it seems that the issue is related to the .NET runtime version. It is possible that the upgraded version of the Azure.Identity NuGet package requires a newer version of the .NET runtime than what is currently installed on your server.

    To resolve this issue, you can try the following steps:

    Check if the .NET runtime version 6.0 is installed on your server. You can do this by running the following command in the command prompt: dotnet --list-runtimes. If the .NET runtime version 6.0 is not installed, you can download and install it from the following link: https://dotnet.microsoft.com/download/dotnet/6.0.

    1. See if the application is targeting the correct version of the .NET runtime. You can do this by checking the TargetFramework property in the project file. Make sure that it is set to net6.0<a href="#doc-pos=2" data-tag-index="1"></a></span>.
    2. Ensure the application is using the correct version of the Azure.Identity NuGet package. Make sure that the version of the package is compatible with the .NET runtime version that is installed on your server.

    If the issue persists, you can try rolling back the Azure.Identity NuGet package to the previous version (1.9.0) and see if the application starts up successfully. If it does, then it is likely that the issue is related to the upgraded version of the package.

    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.