Error contacting Nuget server

I’m getting the following error when testing the feed, full stack from the event log below
No property ‘IsAbsoluteLatestVersion’ exists in type ‘NuGetGallery.V1FeedPackage’ at position 92

Thanks,
Orn

2013-01-03 21:12:53,419 [13] ERROR Octopus [(null)] - System.InvalidOperationException: No property ‘IsAbsoluteLatestVersion’ exists in type ‘NuGetGallery.V1FeedPackage’ at position 92. —> System.Data.Services.Client.DataServiceQueryException: An error occurred while processing this request. —> System.Data.Services.Client.DataServiceClientException: <?xml version="1.0" encoding="utf-8" standalone="yes"?>


No property ‘IsAbsoluteLatestVersion’ exists in type ‘NuGetGallery.V1FeedPackage’ at position 92.

at System.Data.Services.Client.QueryResult.Execute()
at System.Data.Services.Client.DataServiceRequest.Execute[TElement](DataServiceContext context, QueryComponents queryComponents)
— End of inner exception stack trace —
at System.Data.Services.Client.DataServiceRequest.Execute[TElement](DataServiceContext context, QueryComponents queryComponents)
at System.Data.Services.Client.DataServiceQuery1.Execute() at System.Data.Services.Client.DataServiceQuery1.ExecuteInternal()
at System.Data.Services.Client.DataServiceQuery.Execute()
at NuGet.DataServiceQueryWrapper1.Execute[TResult](Func1 action)
— End of inner exception stack trace —
at NuGet.DataServiceQueryWrapper1.Execute[TResult](Func1 action)
at NuGet.DataServiceQueryWrapper1.<GetAll>d__7.MoveNext() at System.Collections.Generic.List1…ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at Octopus.Portal.Areas.Api.Controllers.PackagesController.SearchForPackagesNamedLike(IPackageRepository repository, String packageId, Int32 take)
at Octopus.Portal.Areas.Api.Controllers.PackagesController.Index(String feedId, String packageId, Boolean partialMatch, Boolean includeMultipleVersions, Int32 take)
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass42.b__41()
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass81.<BeginSynchronous>b__7(IAsyncResult _) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult1.End()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.b__33()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.b__49()

I’m seeing this too. We’re on v1.2.2.1455.

Hi,

Octopus uses the 2.0 version of NuGet now, and the IsAbsoluteLatestVersion property was added in 2.0. It looks like the feed you added to Octopus uses a version 1 feed URL. Can you try changing it to a version 2 URL, or upgrading the NuGet repository?

Paul

Yes, changing the Nuget Gallery URL did the trick

From
http://myserv:8111/v1/FeedService.svc/
To
http://myserv:8111/api/v2/

Thanks,
Orn