Object reference not set to an instance of an object. When downloading from NuGet

HI Paul,

Getting the above when a deploy is kicked off, during the download from NuGet step.

The repository that it’s trying to pull from is a TeamCity7 NuGet artifact repository and contains a large quantity of packages (>5k)

In EventManager the following is recorded

The description for Event ID 0 from source Octopus cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

2012-07-11 15:18:56,243 [4] ERROR Octopus [(null)] - System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.

Server stack trace: 
   at Octopus.Server.Tasks.Deploy.DownloadPackagesActivity.<Execute>b__0(Step s) in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Server\Tasks\Deploy\DownloadPackagesActivity.cs:line 28
   at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
   at System.Linq.Enumerable.<OfTypeIterator>d__aa`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Octopus.Server.Tasks.Deploy.DownloadPackagesActivity.<Execute>d__7.MoveNext() in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Server\Tasks\Deploy\DownloadPackagesActivity.cs:line 27

Exception rethrown at [0]: 
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
   at Octopus.Shared.Activities.ActivityRuntime.<ExecuteChild>d__0.MoveNext() in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Shared\Activities\ActivityRuntime.cs:line 52

Exception rethrown at [1]: 
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
   at Octopus.Server.Tasks.Deploy.DeploymentControllerActivity.<Execute>d__0.MoveNext() in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Server\Tasks\Deploy\DeploymentControllerActivity.cs:line 46
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at System.Threading.Tasks.Task.Execute()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at Octopus.Server.Tasks.TaskRunner.Execute(Task task) in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Server\Tasks\TaskRunner.cs:line 54
---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.

Server stack trace: 
   at Octopus.Server.Tasks.Deploy.DownloadPackagesActivity.<Execute>b__0(Step s) in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Server\Tasks\Deploy\DownloadPackagesActivity.cs:line 28
   at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
   at System.Linq.Enumerable.<OfTypeIterator>d__aa`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Octopus.Server.Tasks.Deploy.DownloadPackagesActivity.<Execute>d__7.MoveNext() in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Server\Tasks\Deploy\DownloadPackagesActivity.cs:line 27

Exception rethrown at [0]: 
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
   at Octopus.Shared.Activities.ActivityRuntime.<ExecuteChild>d__0.MoveNext() in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Shared\Activities\ActivityRuntime.cs:line 52

Exception rethrown at [1]: 
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
   at Octopus.Server.Tasks.Deploy.DeploymentControllerActivity.<Execute>d__0.MoveNext() in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Server\Tasks\Deploy\DeploymentControllerActivity.cs:line 46
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at System.Threading.Tasks.Task.Execute()
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.

Server stack trace: 
   at Octopus.Server.Tasks.Deploy.DownloadPackagesActivity.<Execute>b__0(Step s) in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Server\Tasks\Deploy\DownloadPackagesActivity.cs:line 28
   at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
   at System.Linq.Enumerable.<OfTypeIterator>d__aa`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Octopus.Server.Tasks.Deploy.DownloadPackagesActivity.<Execute>d__7.MoveNext() in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Server\Tasks\Deploy\DownloadPackagesActivity.cs:line 27

Exception rethrown at [0]: 
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
   at Octopus.Shared.Activities.ActivityRuntime.<ExecuteChild>d__0.MoveNext() in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Shared\Activities\ActivityRuntime.cs:line 52

Exception rethrown at [1]: 
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
   at Octopus.Server.Tasks.Deploy.DeploymentControllerActivity.<Execute>d__0.MoveNext() in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Server\Tasks\Deploy\DeploymentControllerActivity.cs:line 46<---
<---



the message resource is present but the message is not found in the string/message table

Hi Bruce,

I’m guessing you are running build 1.0.15.1250 or before; if you install 1.0.15.1251 it is fixed:

Sorry for the hassle,

Paul

I’d refrained from 1251 as there were no release notes earlier in the day.

I’ll update now

Bruce