After upgrade Octopus server crashes from unhandled exception. Reinstalling the service does not resolve the issue. Here is the exception recorded in Windows Event Log:
@@@
-
EventData
2014-02-13 04:25:56.3337 ERROR An exception was thrown while invoking the constructor ‘Void .ctor(Octopus.Platform.Diagnostics.ILog, Pipefish.Transport.SecureTcp.MessageExchange.Server.SecureTcpServerDistributor, Octopus.Server.Communications.CertificateLookupCache, Octopus.Platform.Deployment.Configuration.ITcpServerCommunicationsConfiguration, System.Collections.Generic.IEnumerable
1[Pipefish.Transport.SecureTcp.Routing.IRouteModule], Raven.Client.IDocumentStore)' on type 'TcpServerDistributionChannel'. ---> Could not load type 'Pipefish.Transport.SecureTcp.ClientCertificateValidation' from assembly 'Pipefish.Transport.SecureTcp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. (See inner exception for details.) Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Octopus.Platform.Diagnostics.ILog, Pipefish.Transport.SecureTcp.MessageExchange.Server.SecureTcpServerDistributor, Octopus.Server.Communications.CertificateLookupCache, Octopus.Platform.Deployment.Configuration.ITcpServerCommunicationsConfiguration, System.Collections.Generic.IEnumerable
1[Pipefish.Transport.SecureTcp.Routing.IRouteModule], Raven.Client.IDocumentStore)’ on type ‘TcpServerDistributionChannel’. —> Could not load type ‘Pipefish.Transport.SecureTcp.ClientCertificateValidation’ from assembly ‘Pipefish.Transport.SecureTcp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. (See inner exception for details.) —> System.TypeLoadException: Could not load type ‘Pipefish.Transport.SecureTcp.ClientCertificateValidation’ from assembly ‘Pipefish.Transport.SecureTcp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. at Octopus.Server.Communications.TcpServer.TcpServerDistributionChannel.CreateServer() at Octopus.Server.Communications.TcpServer.TcpServerDistributionChannel…ctor(ILog log, SecureTcpServerDistributor distributor, CertificateLookupCache certificateCache, ITcpServerCommunicationsConfiguration serverConfiguration, IEnumerable1 routes, IDocumentStore store) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Server\Communications\TcpServer\TcpServerDistributionChannel.cs:line 49 at lambda_method(Closure , Object[] ) at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() --- End of inner exception stack trace --- at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable
1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters) at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func
1 creator) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable1 parameters) at System.Linq.Enumerable.WhereSelectArrayIterator
2.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable
1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at Autofac.Features.Collections.CollectionRegistrationSource.<>c__DisplayClass4.<RegistrationsFor>b__0(IComponentContext c, IEnumerable
1 p) at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable
1 parameters) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable1 parameters) at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable
1 parameters) at Autofac.Features.LazyDependencies.LazyRegistrationSource.<>c__DisplayClass51.<>c__DisplayClass7.<CreateLazyRegistration>b__4() at System.Lazy
1.CreateValue() at System.Lazy`1.LazyInitValue() at Octopus.Server.Communications.DistributionStarter.Start() in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Server\Communications\DistributionStarter.cs:line 30 at Octopus.Server.OctopusServerEngine.Start() in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Server\OctopusServerEngine.cs:line 55 at Octopus.Server.Commands.RunCommand.Start() in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Server\Commands\RunCommand.cs:line 21 at Octopus.Shared.Startup.WindowsServiceHost.<>c__DisplayClass2.b__0() in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Shared\Startup\WindowsServiceHost.cs:line 19 at Octopus.Shared.Startup.WindowsServiceAdapter.RunService() in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Shared\Startup\WindowsServiceAdapter.cs:line 44
@@@