2014-03-27 16 views
1

我試圖使用安裝SignalR:故障時通過的NuGet在Visual Studio 2012安裝SIGNR:指定參數超出有效值範圍的

install-package Microsoft.AspNet.SignalR 

我使用Visual Studio 2012 Follwing該教程: Getting Started with SignalR 2.0 and MVC 5 當我嘗試安裝'Signalr'並得到一個錯誤,指出Specified argument was out of the range of valid values. Parameter name: supportedFrameworks。任何人都知道爲什麼會這樣?以下是完整輸出:

Attempting to resolve dependency 'Microsoft.AspNet.SignalR.JS (≥ 2.0.2)'. 
Attempting to resolve dependency 'jQuery (≥ 1.6.4)'. 
Attempting to resolve dependency 'Microsoft.AspNet.SignalR.SystemWeb (≥ 2.0.2)'. 
Attempting to resolve dependency 'Microsoft.AspNet.SignalR.Core (≥ 2.0.2)'. 
Attempting to resolve dependency 'Newtonsoft.Json (≥ 5.0.0)'. 
Attempting to resolve dependency 'Owin (≥ 1.0)'. 
Attempting to resolve dependency 'Microsoft.Owin (≥ 2.0.0)'. 
Attempting to resolve dependency 'Microsoft.Owin.Security (≥ 2.0.0)'. 
Attempting to resolve dependency 'Microsoft.Owin.Host.SystemWeb (≥ 2.0.0)'. 
Installing 'Newtonsoft.Json 5.0.1'. 
Successfully installed 'Newtonsoft.Json 5.0.1'. 
Installing 'Owin 1.0'. 
Successfully installed 'Owin 1.0'. 
Installing 'Microsoft.Owin 2.0.0'. 
You are downloading Microsoft.Owin from Microsoft, the license agreement to which is available at http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_enu.htm. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. 
Successfully installed 'Microsoft.Owin 2.0.0'. 
Installing 'Microsoft.Owin.Security 2.0.0'. 
You are downloading Microsoft.Owin.Security from Microsoft, the license agreement to which is available at http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_enu.htm. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. 
Successfully installed 'Microsoft.Owin.Security 2.0.0'. 
Installing 'Microsoft.AspNet.SignalR.Core 2.0.2'. 
You are downloading Microsoft.AspNet.SignalR.Core from Microsoft, the license agreement to which is available at http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_ENU.htm. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. 
Successfully installed 'Microsoft.AspNet.SignalR.Core 2.0.2'. 
Installing 'Microsoft.Owin.Host.SystemWeb 2.0.0'. 
You are downloading Microsoft.Owin.Host.SystemWeb from Microsoft, the license agreement to which is available at http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_enu.htm. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. 
Successfully installed 'Microsoft.Owin.Host.SystemWeb 2.0.0'. 
Installing 'Microsoft.AspNet.SignalR.SystemWeb 2.0.2'. 
You are downloading Microsoft.AspNet.SignalR.SystemWeb from Microsoft, the license agreement to which is available at http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_ENU.htm. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. 
Successfully installed 'Microsoft.AspNet.SignalR.SystemWeb 2.0.2'. 
Installing 'Microsoft.AspNet.SignalR 2.0.2'. 
You are downloading Microsoft.AspNet.SignalR from Microsoft, the license agreement to which is available at http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_ENU.htm. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. 
Successfully installed 'Microsoft.AspNet.SignalR 2.0.2'. 
Adding 'jQuery 1.6.4' to SignalRChat2. 
Successfully added 'jQuery 1.6.4' to SignalRChat2. 
Adding 'Microsoft.AspNet.SignalR.JS 2.0.2' to SignalRChat2. 
Successfully added 'Microsoft.AspNet.SignalR.JS 2.0.2' to SignalRChat2. 
Removing 'Newtonsoft.Json 4.5.11' from SignalRChat2. 
Install failed. Rolling back... 
install-package : Specified argument was out of the range of valid values. 
Parameter name: supportedFrameworks 
At line:1 char:1 
+ install-package Microsoft.AspNet.SignalR 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : NotSpecified: (:) [Install-Package], ArgumentOutOfRangeException 
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand 

我不斷變化的框架4,4.5,4.5.1 MVC 4試過,5,所有有同樣的問題

+0

您定位的是什麼.Net框架工作? –

+0

我使用框架4.5.1 – haind

回答

0

你可以嘗試安裝從工具 - 最新的NuGet >擴展和更新,看看這仍然repro?

+0

我使用VS 2012並嘗試使用VS 2013安裝。問題是消失 – haind

相關問題