Setting up a release error

When setting up a release using:

http://localhost:9090/projects/projectname/releases/edit

The version number dropdown is empty - clicking the little refress button associated with it does nothing - where do I populate that? this seems to cause the following error:

System.NullReferenceException: Object reference not set to an instance of an object.
at Octopus.Portal.Models.Releases.EditReleasePostModelValidator.<>c__DisplayClass7.b__5(PackageStep x) in c:\BuildAgent\work\e6923628be6eaf72\source\Octopus.Portal\Models\Releases\EditReleasePostModelValidator.cs:line 46
at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Linq.Enumerable.<DistinctIterator>d__811.MoveNext()
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at Octopus.Portal.Models.Releases.EditReleasePostModelValidator.ContainAnEntryForEveryStep(EditReleasePostModel model, IDictionary2 selected) in c:\BuildAgent\work\e6923628be6eaf72\source\Octopus.Portal\Models\Releases\EditReleasePostModelValidator.cs:line 46
at FluentValidation.Validators.PredicateValidator.IsValid(PropertyValidatorContext context)
at FluentValidation.Validators.PropertyValidator.Validate(PropertyValidatorContext context)
at FluentValidation.Internal.PropertyRule.d__8.MoveNext()
at System.Linq.Enumerable.d__142.MoveNext() at System.Collections.Generic.List1…ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at FluentValidation.AbstractValidator1.Validate(ValidationContext1 context)
at FluentValidation.Mvc.FluentValidationModelValidator.Validate(Object container)
at System.Web.Mvc.ModelValidator.CompositeModelValidator.d__5.MoveNext()
at System.Web.Mvc.DefaultModelBinder.OnModelUpdated(ControllerContext controllerContext, ModelBindingContext bindingContext)
at System.Web.Mvc.DefaultModelBinder.BindComplexModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
at System.Web.Mvc.ControllerActionInvoker.GetParameterValue(ControllerContext controllerContext, ParameterDescriptor parameterDescriptor)
at System.Web.Mvc.ControllerActionInvoker.GetParameterValues(ControllerContext controllerContext, ActionDescriptor actionDescriptor)
at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
at System.Web.Mvc.Controller.ExecuteCore()
at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)
at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.b__5()
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.b__0()
at System.Web.Mvc.MvcHandler.<>c__DisplayClasse.b__d()
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

octopus-error-cause.PNG

looking into this the id field in the form being submitted is empty?

that doesnt look right

Hi Wayne,

This error is happening because no version has been selected, because as you say the drop down is empty. This might be because the NuGet ID is wrong, or because you only have pre-release package versions available. Could you visit the Configuration->NuGet page in Octopus and use the Test button to check whether package versions exist?

Paul

Hey, it’s because I included the v number in the package name :slight_smile:

Sent from my iPhone