简体   繁体   English

在Visual Studio 2012中通过Nuget安装Signr时失败:指定的参数超出有效值范围

[英]Fail when install Signr via Nuget in Visual Studio 2012: Specified argument was out of the range of valid values

I'm attempting to install SignalR using: 我正在尝试使用以下方法安装SignalR:

    install-package Microsoft.AspNet.SignalR

I use Visual Studio 2012. Follwing that tutorial: Getting Started with SignalR 2.0 and MVC 5 When I try install 'Signalr' and getting an error stating that Specified argument was out of the range of valid values. Parameter name: supportedFrameworks 我使用Visual Studio2012。跟随该教程: SignalR 2.0和MVC入门5当我尝试安装'Signalr'并收到一条错误消息,指出Specified argument was out of the range of valid values. Parameter name: supportedFrameworks Specified argument was out of the range of valid values. Parameter name: supportedFrameworks . Specified argument was out of the range of valid values. Parameter name: supportedFrameworks Anyone have any idea why this would be? 有人知道为什么会这样吗? Below is the full output: 以下是完整的输出:

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

I tried with changing framework 4, 4.5, 4.5.1 for MVC 4, 5. All have the same issue 我尝试将框架4、4.5、4.5.1更改为MVC 4、5。所有问题都相同

您可以尝试从工具->扩展和更新中安装最新的NuGet,以查看是否仍然可以复制吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 DataTable.Load()指定的参数超出了有效值的范围 - DataTable.Load() Specified argument was out of the range of valid values MEF指定的参数超出有效值范围。 参数名称:site - MEF Specified argument was out of the range of valid values. Parameter name: site 在使用Infragistics WebDialogWindow进行Postback的过程中,“指定的参数超出有效值的范围。” - “Specified argument was out of the range of valid values.”on Postback's process using Infragistics WebDialogWindow 无法在Visual Studio项目中安装nuget软件包zlib - fail to install nuget package zlib in a visual studio project 在Visual Studio 2012 Express上通过Nuget的NUnit.Runners不起作用 - NUnit.Runners via Nuget on Visual Studio 2012 express doesn't work Visual Studio 2012脱机安装nuget - Visual Studio 2012 installing nuget offline '4.6.0-preview6.19303.8' 不是有效的版本字符串。 无法在 Visual Studio 2013 中安装 Nuget 包 - '4.6.0-preview6.19303.8' is not a valid version string. Unable to Install Nuget Packages in Visual Studio 2013 Visual Studio Nuget无法安装任何软件包 - Visual Studio Nuget unable to install any package 如何使用NuGet软件包管理器控制台在Visual Studio 2012 Pro上安装OpenPop.NET? - How can i install OpenPop.NET on my visual studio 2012 pro using the NuGet package manager console? 在Visual Studio 2012中检查.NET和安装 - Check for .NET and Install in Visual Studio 2012
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM