Could not load file or assembly 'Newtonsoft.Json, Version=10.0.0.0

reliability
(Lukelindner) #1

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:
postConfigError

After restarting I got a similar error. A colleague suggested patching .NetFramework so I installed 4.7.2 but got the same issue.
postRestartError

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, IEnumerable1 parameters)
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable1 parameters) at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable1 parameters, Object& instance)
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable1 parameters) at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable1 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.WhereSelectEnumerableIterator2.MoveNext()
at System.Collections.Generic.List1..ctor(IEnumerable1 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_01.b__0(IComponentContext c, IEnumerable1 p) at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)

Please assist in resolving the issue

(Daniel Fischer) #3

Hi @lukelindner,

Thanks for getting in touch! It looks like we had a problem with Tentacle version 5.0.1 and have resolved this issue in Tentacle version 5.0.2. If you download the latest version and try the installation again, this should work for you.

Let me know if you get stuck here or have any further questions.

Best regards,
Daniel

(Lukelindner) #4

Thanks. This fixed it :slight_smile:

(Daniel Fischer) #5

Hi @lukelindner,

Thanks for the update! I’m glad to hear this fixed it.

Feel free to get in touch at any time. :slight_smile:

Best regards,
Daniel