3

Closed

Nuget *server* crashing on update check

description

The standard update package command stopped working. (nuget 2.7.40808.167). I've managed to capture the URL nuget is sending: http://www.nuget.org/api/v2/GetUpdates()?packageIds='Microsoft.Web.Infrastructure%7CMicrosoft.Bcl.Build%7CDotNetZip%7CPagedList%7Clog4net%7CMicrosoft.AspNet.Razor%7CMicrosoft.AspNet.WebPages%7CAutoMapper%7CNinject.Extensions.NamedScope%7CNinject.Extensions.Logging%7CNinject.Extensions.Logging.Log4net%7CNinject%7CMicrosoft.AspNet.Mvc%7CEntityFramework'&versions='1.0.0.0%7C1.0.8%7C1.9.1.8%7C1.16.0.0%7C2.0.0%7C2.0.30506.0%7C2.0.30506.0%7C2.2.1%7C3.0.0.5%7C3.0.1.0%7C3.0.1.0%7C3.0.1.10%7C4.0.30506.0%7C5.0.0'&includePrerelease=false&includeAllVersions=false&targetFrameworks='net45'&versionConstraints='%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C'

This occurs in VS.NET 2012 (update 3) and VS.NET 2013 preview. My guess someone uploaded a dodgy package? If so, it should definitely not crash out on the update process entirely.

Error message is : Specified argument was out of the range of valid values.
Parameter name: supportedFrameworks

Stacktrace:
 at NuGet.NetPortableProfile..ctor(String version, String name, IEnumerable`1 supportedFrameworks)
 at NuGet.NetPortableProfileTable.LoadPortableProfile(String version, String profileDirectory)
 at NuGet.NetPortableProfileTable.<>c__DisplayClass4.<LoadProfilesFromFramework>b__2(String profileDir)
 at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
 at NuGet.CollectionExtensions.AddRange[T](ICollection`1 collection, IEnumerable`1 items)
 at NuGet.NetPortableProfileTable.BuildPortableProfileCollection()
 at NuGet.NetPortableProfileTable.get_Profiles()
 at NuGet.NetPortableProfileTable.GetProfile(String profileName)
 at NuGet.NetPortableProfile.Parse(String profileValue)
 at NuGet.VersionUtility.IsPortableLibraryCompatible(FrameworkName frameworkName, FrameworkName targetFrameworkName)
 at NuGet.VersionUtility.IsCompatible(FrameworkName frameworkName, FrameworkName targetFrameworkName)
 at NuGet.VersionUtility.<>c__DisplayClass1f.<IsCompatible>b__1d(FrameworkName supportedFramework)
 at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
 at NuGet.VersionUtility.IsCompatible(FrameworkName frameworkName, IEnumerable`1 supportedFrameworks)
 at NuGetGallery.V2Feed.<>c__DisplayClass1a.<>c__DisplayClass1c.<>c__DisplayClass1f.<GetUpdates>b__11(FrameworkName s)
 at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
 at NuGetGallery.V2Feed.<>c__DisplayClass1a.<>c__DisplayClass1c.<GetUpdates>b__f(Tuple`2 versionTuple)
 at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
 at NuGetGallery.V2Feed.<>c__DisplayClass1a.<GetUpdates>b__e(<>f__AnonymousType4`2 <>h__TransparentIdentifierc)
 at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
 at System.Linq.Lookup`2.Create[TSource](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
 at System.Linq.GroupedEnumerable`3.GetEnumerator()
 at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
 at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
 at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__0.MoveNext()
 at System.Linq.Enumerable.<TakeIterator>d__3a`1.MoveNext()
 at System.Data.Services.QueryResultInfo.MoveNext()
 at System.Data.Services.DataService`1.SerializeResponseBody(RequestDescription description, IDataService dataService, IODataResponseMessage responseMessage)
 at System.Data.Services.DataService`1.HandleNonBatchRequest(RequestDescription description)
 at System.Data.Services.DataService`1.HandleRequest()
Closed Oct 10, 2013 at 10:45 PM by deepakverma
both the reported urls are not working. It looks like this was something fixed with the portable lib fix for the NuGet gallery. Please reactivate if you are still seeing the issue.

comments

batkuip wrote Sep 6, 2013 at 12:36 AM

Found the issue package: Automapper 2.2.1 seems to kill nuget

To replicate:
  • Create class library
  • in package console: Install-Package AutoMapper -Version 2.2.1
  • try and update the package -> error in nuget manager

IDDesigns wrote Sep 8, 2013 at 10:32 PM

It's not just Automapper - I'm getting the same error with a different combination of packages.

Alaa9jo wrote Sep 9, 2013 at 9:28 AM

I was able to reproduce this issue in VS2010,here is the url Nuget was passing when it was checking for updates on my MVC 4.0 project:

https://www.nuget.org/api/v2/GetUpdates()?packageIds='Microsoft.Web.Infrastructure%7CMicrosoft.Bcl.Build%7CMicrosoft.Bcl%7CMicrosoft.AspNet.Razor%7CMicrosoft.AspNet.WebPages%7CMicrosoft.Net.Http%7CMicrosoft.AspNet.WebApi%7CMicrosoft.AspNet.Mvc%7CMicrosoft.AspNet.WebApi.Client%7CMicrosoft.AspNet.WebApi.WebHost%7CMicrosoft.AspNet.WebApi.Core%7CNewtonsoft.Json'&versions='1.0.0.0%7C1.0.7%7C1.0.19%7C2.0.30506.0%7C2.0.30506.0%7C2.1.10%7C4.0.30506.0%7C4.0.30506.0%7C4.0.30506.0%7C4.0.30506.0%7C4.0.30506.0%7C5.0.6'&includePrerelease=false&includeAllVersions=false&targetFrameworks='net40'&versionConstraints='%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C'

and the error:
<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<m:code />
<m:message xml:lang="en-US">An error occurred while processing this request.</m:message>
<m:innererror>
<m:message>Specified argument was out of the range of valid values.&#xD;
Parameter name: supportedFrameworks</m:message>
<m:type>System.ArgumentOutOfRangeException</m:type>
<m:stacktrace>   at NuGet.NetPortableProfile..ctor(String version, String name, IEnumerable`1 supportedFrameworks)&#xD;
   at NuGet.NetPortableProfileTable.LoadPortableProfile(String version, String profileDirectory)&#xD;
   at NuGet.NetPortableProfileTable.&lt;&gt;c__DisplayClass4.&lt;LoadProfilesFromFramework&gt;b__2(String profileDir)&#xD;
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()&#xD;
   at NuGet.CollectionExtensions.AddRange[T](ICollection`1 collection, IEnumerable`1 items)&#xD;
   at NuGet.NetPortableProfileTable.BuildPortableProfileCollection()&#xD;
   at NuGet.NetPortableProfileTable.get_Profiles()&#xD;
   at NuGet.NetPortableProfileTable.GetProfile(String profileName)&#xD;
   at NuGet.NetPortableProfile.Parse(String profileValue)&#xD;
   at NuGet.VersionUtility.IsPortableLibraryCompatible(FrameworkName frameworkName, FrameworkName targetFrameworkName)&#xD;
   at NuGet.VersionUtility.IsCompatible(FrameworkName frameworkName, FrameworkName targetFrameworkName)&#xD;
   at NuGet.VersionUtility.&lt;&gt;c__DisplayClass1f.&lt;IsCompatible&gt;b__1d(FrameworkName supportedFramework)&#xD;
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)&#xD;
   at NuGet.VersionUtility.IsCompatible(FrameworkName frameworkName, IEnumerable`1 supportedFrameworks)&#xD;
   at NuGetGallery.V2Feed.&lt;&gt;c__DisplayClass1a.&lt;&gt;c__DisplayClass1c.&lt;&gt;c__DisplayClass1f.&lt;GetUpdates&gt;b__11(FrameworkName s)&#xD;
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)&#xD;
   at NuGetGallery.V2Feed.&lt;&gt;c__DisplayClass1a.&lt;&gt;c__DisplayClass1c.&lt;GetUpdates&gt;b__f(Tuple`2 versionTuple)&#xD;
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)&#xD;
   at NuGetGallery.V2Feed.&lt;&gt;c__DisplayClass1a.&lt;GetUpdates&gt;b__e(&lt;&gt;f__AnonymousType4`2 &lt;&gt;h__TransparentIdentifierc)&#xD;
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()&#xD;
   at System.Linq.Lookup`2.Create[TSource](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)&#xD;
   at System.Linq.GroupedEnumerable`3.GetEnumerator()&#xD;
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()&#xD;
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)&#xD;
   at System.Linq.OrderedEnumerable`1.&lt;GetEnumerator&gt;d__0.MoveNext()&#xD;
   at System.Linq.Enumerable.&lt;TakeIterator&gt;d__3a`1.MoveNext()&#xD;
   at System.Data.Services.QueryResultInfo.MoveNext()&#xD;
   at System.Data.Services.DataService`1.SerializeResponseBody(RequestDescription description, IDataService dataService, IODataResponseMessage responseMessage)&#xD;
   at System.Data.Services.DataService`1.HandleNonBatchRequest(RequestDescription description)&#xD;
   at System.Data.Services.DataService`1.HandleRequest()</m:stacktrace></m:innererror></m:error>