An exception was thrown while invoking the constructor 'Void .ctor(Octopus.Shared.Configuration.ITentacleConfiguration, Octopus.Shared.Util.IOctopusFileSystem)' on type 'PackageService'

Hi,

We’re loving Octopus and we’re soon going to use it to publish to production for the first time.
I’m getting the below exception when trying to deploy to a tentacle.The full error in the website is as below.

Also, the health check for the tentacle is good, and a deploy to another tentacle with the same release succeeds. The only differences are with connection strings. I’m also using the latest and greatest v1.

Thanks,
Tim

An exception was thrown while invoking the constructor ‘Void .ctor(Octopus.Shared.Configuration.ITentacleConfiguration, Octopus.Shared.Util.IOctopusFileSystem)’ on type ‘PackageService’.

Stage 2: Uploading packages to Tentacles
2012-06-22 15:18:51 INFO Preparing to upload packages
2012-06-22 15:18:51 INFO Uploading packages…
2012-06-22 15:18:51 ERROR System.ServiceModel.FaultException1[System.ServiceModel.ExceptionDetail]: An exception was thrown while invoking the constructor 'Void .ctor(Octopus.Shared.Configuration.ITentacleConfiguration, Octopus.Shared.Util.IOctopusFileSystem)' on type 'PackageService'. (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Octopus.Shared.Configuration.ITentacleConfiguration, Octopus.Shared.Util.IOctopusFileSystem)' on type 'PackageService'. ----> System.ArgumentNullException: Value cannot be null. Parameter name: path1 at System.IO.Path.Combine(String path1, String path2) at Octopus.Tentacle.Services.Packages.PackageService..ctor(ITentacleConfiguration tentacleConfiguration, IOctopusFileSystem fileSystem) in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Tentacle\Services\Packages\PackageService.cs:line 19 --- End of inner ExceptionDetail stack trace --- at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Act…).
2012-06-22 15:18:52 ERROR System.ServiceModel.FaultException1[System.ServiceModel.ExceptionDetail]: An exception was thrown while invoking the constructor 'Void .ctor(Octopus.Shared.Configuration.ITentacleConfiguration, Octopus.Shared.Util.IOctopusFileSystem)' on type 'PackageService'. (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Octopus.Shared.Configuration.ITentacleConfiguration, Octopus.Shared.Util.IOctopusFileSystem)' on type 'PackageService'. ----> System.ArgumentNullException: Value cannot be null. Parameter name: path1 at System.IO.Path.Combine(String path1, String path2) at Octopus.Tentacle.Services.Packages.PackageService..ctor(ITentacleConfiguration tentacleConfiguration, IOctopusFileSystem fileSystem) in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Tentacle\Services\Packages\PackageService.cs:line 19 --- End of inner ExceptionDetail stack trace --- at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Act…).
2012-06-22 15:18:53 ERROR System.ServiceModel.FaultException1[System.ServiceModel.ExceptionDetail]: An exception was thrown while invoking the constructor 'Void .ctor(Octopus.Shared.Configuration.ITentacleConfiguration, Octopus.Shared.Util.IOctopusFileSystem)' on type 'PackageService'. (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Octopus.Shared.Configuration.ITentacleConfiguration, Octopus.Shared.Util.IOctopusFileSystem)' on type 'PackageService'. ----> System.ArgumentNullException: Value cannot be null. Parameter name: path1 at System.IO.Path.Combine(String path1, String path2) at Octopus.Tentacle.Services.Packages.PackageService..ctor(ITentacleConfiguration tentacleConfiguration, IOctopusFileSystem fileSystem) in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Tentacle\Services\Packages\PackageService.cs:line 19 --- End of inner ExceptionDetail stack trace --- at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Act…).

Hi Tim,

Which version of Tentacle is the machine running? This bug should have been fixed from 1.0.13.1201 onwards.

Paul

Hi Paul,

Very quick response. I’m using 1.0.13.13…

So I’ll get the latest version and download…

And it works. Thanks.

Great! Thanks for the update Tim!

Paul


From: Tim Barber
Sent: 22/06/2012 17:37
To: Paul Stovell
Subject: Re: An exception was thrown while invoking the constructor ‘Void .ctor(Octopus.Shared.Configuration.ITentacleConfiguration, Octopus.Shared.Util.IOctopusFileSystem)’ on type ‘PackageService’.[Problems]