2016-07-14 63 views
4

我在Visual Studio中添加了默认的ASP.NET Core项目。我没有做任何事情发布该项目并将其部署在Windows Server 2012 RC2上。 我已经安装DotNetCore'NETCore.App',版本'1.0.0-rc2-3002702'未找到

我配置了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'. 

请帮

+0

你确定你安装了[.NET核心SDK(HTTPS: //go.microsoft.com/fwlink/?LinkID=809122)在服务器计算机上? –

+0

DotNetCore.1.0.0-WindowsHosting目前安装在服务器上。我已阅读此页面上的配置/安装指南https://docs.asp.net/en/latest/publishing/iis.html#install-the-net-core-windows-server-hosting-bundle –

+0

现在我已经安装了NET Core SDK,但结果相同。在事件日志中,我发现此消息: 无法使用命令行“”dotnet“\ Website.dll”启动进程,ErrorCode ='0x80004005'。 –

回答

2

我有同样的问题,我对付它只是改变1.0.1到1.0.0在runtimeconfig.json

enter image description here

3

有在你的依赖,在你project.json文件的工具部分,可能有不同的版本工具,这是可能的。例如:

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

"dependencies": { 
"Microsoft.EntityFrameworkCore.Tools": { 
    "type": "build", 
    "version": "1.0.0-preview1-final", 
    ... 
} 

会使你看到,因为版本不同意的错误。

+1

Scott Hanselman在此处详细描述了此问题:http://www.hanselman.com/blog/TheMysteryOfDotnetWatchAndMicrosoftNETCoreAppVersion110preview100110000WasNotFound.aspx – elshev