The specified version of microsoft netcore app or microsoft aspnetcore app was not found

异常提示:

Common solutions to this issue:

The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found.

Troubleshooting steps:

  • Check the system event log for error messages

  • Enable logging the application process' stdout messages

  • Attach a debugger to the application process and inspect

解决方法:

安装对应版本(或最新版本)的 ASP.NET Core Runtime,前往下载:https://dotnet.microsoft.com/download

The specified version of microsoft netcore app or microsoft aspnetcore app was not found

xoyozo 3 年前

转载请注明出处

7,175 {{blog.voteUp}} {{blog.voteDown}}

可能相关的内容

css之FILTER:progid:DXImageTransform.Microsoft.Gradient使用 The requested URL returned error: 404 Not Found The host xxx does not support SSL connections. Could not load file or assembly 'Microsoft.EntityFrameworkCore.Relational, Version=6.0.x.0, Culture=

I have deployed my app on a production machine. I am publishing Release, win-x64 and --self-contained true. I have installed .net core 3.1.7 restarted the VPS and I am getting:

The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found.

dotnet --info returns:

It was not possible to find any installed .NET Core SDKs Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from: https://aka.ms/dotnet-download Host (useful for support): Version: 3.1.7 Commit: fcfdef8d6b .NET Core SDKs installed: No SDKs were found. .NET Core runtimes installed: Microsoft.AspNetCore.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download

my .csproj file is the following

<PropertyGroup> <TargetFramework>netcoreapp3.1</TargetFramework> <PropertyGroup>

Anyone knows why am I getting this error?

From my end, I was facing this issue when trying to start IIS server on my local machine. I downloaded .NET Core 3.1 SDK and the problem is now solved.

Go to your App Service > Settings > Configuration and make sure that the Stack and the framework version match your app. In our case, after upgrading from .NET Core 3.1 to .NET 5 we had to switch the Stack from .NET Core to .NET and choose version 5.

After making the changes, you will also need to manually restart the App Service for the changes to take effect.

The specified version of microsoft netcore app or microsoft aspnetcore app was not found

I have deployed my app on a production machine. I am publishing Release, win-x64 and --self-contained true. I have installed .net core 3.1.7 restarted the VPS and I am getting:

The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found.

dotnet --info returns:

It was not possible to find any installed .NET Core SDKs Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from: https://aka.ms/dotnet-download Host (useful for support): Version: 3.1.7 Commit: fcfdef8d6b .NET Core SDKs installed: No SDKs were found. .NET Core runtimes installed: Microsoft.AspNetCore.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download

my .csproj file is the following

<PropertyGroup> <TargetFramework>netcoreapp3.1</TargetFramework> <PropertyGroup>

Anyone knows why am I getting this error?

6

PramodShivaprasadRBEIPACCSW1-1695 asked Feb 25, '22 | SumanthMarigowda-MSFT edited Mar 2, '22

I have upgraded my Web API from version netcoreapp3.1 to version net6.0. When I launch it from Visual studio as localhost, it will launch successfully.

I have published the app to the azure app service to which it was previously published. Publish is successful. When I launch the URL I get the below error

" HTTP Error 500.31 - ANCM Failed to Find Native Dependencies Common solutions to this issue: The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found. Specific error detected by ANCM: Error: An assembly specified in the application dependencies manifest (Microsoft.AspNetCore.AzureAppServices.HostingStartup.deps.json) was not found: package: 'Microsoft.Extensions.Logging.AzureAppServices', version: '6.0.1' path: 'lib/net6.0/Microsoft.Extensions.Logging.AzureAppServices.dll' "


I checked dotnet --info command, .net 6 framework is installed.

Anyone has faced a similar issue? Could you please help me with this

azure-webapps

Comment