I am new to Octopus and am trying to sort out my first Tentacle Listener. I downloaded the suggested version at the time which was 5.0.1-x64 and am installing it on a Windows Server 2016 10.0.14393.
Immediately after configuring the listener, I got the below error:
After restarting I got a similar error. A colleague suggested patching .NetFramework so I installed 4.7.2 but got the same issue.
Stacktrace:
An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ShellView (DelegateActivator), Services = [Octopus.Manager.Tentacle.Shell.ShellView], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = OwnedByLifetimeScope —> Could not load file or assembly ‘Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) (See inner exception for details.)
Autofac.Core.DependencyResolutionException
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable
1 parameters)
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable1 parameters) at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable
1 parameters, Object& instance)
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable1 parameters) at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable
1 parameters)
at Octopus.Manager.Tentacle.App.CreateAndShowShell(IComponentContext container) in App.xaml.cs:line 100
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
–Inner Exception–
Could not load file or assembly ‘Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
System.IO.FileLoadException
at Octopus.Shared.Configuration.ApplicationInstanceStore.LoadInstanceConfiguration(String path)
at System.Linq.Enumerable.<>c__DisplayClass7_03.<CombineSelectors>b__0(TSource x) at System.Linq.Enumerable.WhereSelectEnumerableIterator
2.MoveNext()
at System.Collections.Generic.List1..ctor(IEnumerable
1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at Octopus.Shared.Configuration.ApplicationInstanceStore.ListInstances(ApplicationName name) at Octopus.Manager.Tentacle.Shell.InstanceSelectionModel.Refresh() in InstanceSelectionModel.cs:line 47 at Octopus.Manager.Tentacle.TentacleConfiguration.TentacleModule.CreateShell(IComponentContext container) in TentacleModule.cs:line 35 at Autofac.Builder.RegistrationBuilder.<>c__DisplayClass0_0
1.b__0(IComponentContext c, IEnumerable1 p) at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable
1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
Please assist in resolving the issue