【发布时间】:2018-11-08 16:18:30
【问题描述】:
我尝试将我的网络应用从 .net core 2.0 升级到 .net core 2.1 我做到了:
1) 安装 Visual Studio Professional 2017 预览版 15.8.0 预览版 1.1
2) 从这里安装 .net core 2.1.3 RC1 SDK:https://www.microsoft.com/net/download/dotnet-core/sdk-2.1.300-rc1
3) 将我所有的 aspnetcore nuget 包更新到最新版本。
完成这两件事后,当我开始我的项目时,我会看到这个屏幕:
HTTP 错误 502.5 - 进程失败 此问题的常见原因:
The application process failed to start The application process started but then stopped The application process started but failed to listen on the configured port故障排除步骤:
Check the system event log for error messages Enable logging the application process' stdout messages Attach a debugger to the application process and inspect欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?LinkID=808681
在我的 ASP.NET Core Web 服务器的输出窗口中,我得到了这个:
The specified framework 'Microsoft.AspNetCore.App', version '2.1.0' was not found.
- Check application dependencies and target a framework version installed at:
C:\Program Files\dotnet\
- Installing .NET Core prerequisites might help resolve this problem:
http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
- The .NET Core framework and SDK can be installed from:
https://aka.ms/dotnet-download
- The following versions are installed:
2.1.0-preview2-final at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.0-rc1-final at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
It was not possible to find any compatible framework version
The specified framework 'Microsoft.AspNetCore.App', version '2.1.0' was not found.
- Check application dependencies and target a framework version installed at:
C:\Program Files\dotnet\
- Installing .NET Core prerequisites might help resolve this problem:
http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
- The .NET Core framework and SDK can be installed from:
https://aka.ms/dotnet-download
- The following versions are installed:
2.1.0-preview2-final at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.0-rc1-final at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
【问题讨论】:
-
显然他们在发布sdk之前发布了依赖sdk的nuget包。令人沮丧!
-
@GeekyMonkey 什么会让他们做这样的事情? ??????
-
.NET SDK 2.1.300 现已推出:microsoft.com/net/download/windows 请安装它,应该可以解决这个问题。
标签: asp.net-core .net-core asp.net-core-2.0