Reputation: 2698
I upgraded an existing application from asp.net core web API 2.0 to 3.1. When I run the application locally, application runs fine without any errors, but when I deployed the application to the same server where the 2.0 application was running, I got an error saying "ANCM failed to find Native dependencies". Below is the screen shot:
From the provided link: https://dotnet.microsoft.com/download/dotnet-core/3.1
I was able to find out that I need to install .net core 3.1. I am not sure if I need to install on my server:
ASP.NET Core Runtime 3.1.3 OR SDK 3.1.201
I already have few 2.1 applications running on the server so I don't want the older applications to stop working if I upgrade to 3.1 . I have IIS installed on the server. Its a Microsoft windows NT version 6.2 DataCenter edition terminal server and my application that I am trying to deploy is .net core 3.1
I just wanted to know whether I should install ASP.NET Core Runtime 3.1.3 or SDK 3.1.201
and installing any of these on the server wont affect the applications that are running on 2.0 .net core framwork.
any help will be apprecaited.
Upvotes: 0
Views: 9300
Reputation: 4776
Same problem with different solution to accepted answer
Error: HTTP Error 500.31 - ANCM Failed to Find Native Dependencies
Situation:
I release a .NET 8 version of a WebApp to a testing environment that was not ready so rolled back to .NET 6 version.
This in turn seemed to install an extension (ASP.NET Core Logging Integration. Version: 8.0.0) without our knowledge - which in turn prevented our applicaiton from loading - showing the above error
In Azure - Navigate to your WebApp then go to Extensions (under Development Tools 'group')
Then delete this extension (assuming you don't actually need this extension)
Upvotes: 0
Reputation: 84
Each .NET Core will define which version it uses and will use that SDK or runtime. Installing another SDK or runtime will not impact previously installed versions.
If your just hosting and not doing any development on the server then you only need to install the runtime. If any development will be taking place you will need the SDK.
Upvotes: 1