2016-07-14 47 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