Asp.net ';NETCore.App';,版本';1.0.0-rc2-3002702';找不到

Asp.net ';NETCore.App';,版本';1.0.0-rc2-3002702';找不到,asp.net,Asp.net,我在Visual Studio中添加了默认的ASP.NET核心项目。我什么也没做,只是发布了该项目并将其部署在Windows Server 2012 RC2上。 我已经安装了DotNetCore 我配置了IIS,但是当我运行项目时,我会得到一个错误 The specified framework 'Microsoft.NETCore.App', version '1.0.0-rc2-3002702' was not found. - Check application dependenci

我在Visual Studio中添加了默认的ASP.NET核心项目。我什么也没做,只是发布了该项目并将其部署在Windows Server 2012 RC2上。 我已经安装了DotNetCore

我配置了IIS,但是当我运行项目时,我会得到一个错误

The specified framework 'Microsoft.NETCore.App', version '1.0.0-rc2-3002702' was not found.

  - Check application dependencies and target a framework version installed     at:
      C:\Program Files\dotnet\shared\Microsoft.NETCore.App

  - The following versions are installed:       1.0.0
  - Alternatively, install the framework version '1.0.0-rc2-3002702'.

请帮助

您的依赖项和project.json文件的“工具”部分中可能有不同版本的工具。例如:

  "tools": {
"Microsoft.EntityFrameworkCore.Tools": {
  "version": "1.0.0-preview2-final",
  "imports": ...
  ]
}


将导致您看到的错误,因为版本不一致。

我也有同样的问题,我只需在runtimeconfig.json中将1.0.1更改为1.0.0即可解决


您确定在服务器计算机上安装了吗?服务器上当前安装了DotNetCore.1.0.0-WindowsHosting。我已经阅读了本页上的配置/安装指南,现在我已经安装了NET Core SDK,但结果相同。在事件日志中,我发现以下消息:无法使用命令行“dotnet”\Website.dll启动进程,错误代码为“0x80004005”。听起来服务器上安装了.NET Core 1.0(RTM),但开发计算机上安装了RC2。
dotnet--version
在这两个版本上的输出是什么?Scott Hanselman在这里详细描述了这个问题:
  "dependencies": {
"Microsoft.EntityFrameworkCore.Tools": {
  "type": "build",
  "version": "1.0.0-preview1-final",
  ...
}