Hi--We have tried to upgrade nginn message bus from v 1.1.8 to 1.2 in a number of our projects.Unfortunately this always seems to result in runtime exceptions in the web project. When the message bus is initialising it complains about the version of newtonsoft json.Our projects use Newtonsoft.Json version 7.0.1 and we have assembly redirects set up:<dependentAssembly><assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /><bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" /></dependentAssembly>We have tried changing our version of JSON, messing about with assembly redirects and just cannot get the project running.Here is the message that we get:[FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType) +0System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters() +65System.Reflection.RuntimeMethodInfo.GetParametersNoCopy() +13System.Reflection.RuntimePropertyInfo.GetIndexParametersNoCopy() +75System.Reflection.RuntimePropertyInfo.GetIndexParameters() +10Castle.MicroKernel.ModelBuilder.Inspectors.PropertiesDependenciesModelInspector.HasParameters(PropertyInfo property) +10Castle.MicroKernel.ModelBuilder.Inspectors.PropertiesDependenciesModelInspector.IsValidPropertyDependency(PropertyInfo property) +25System.Linq.WhereArrayIterator`1.MoveNext() +49System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +445System.Linq.Enumerable.ToList(IEnumerable`1 source) +58Castle.MicroKernel.ModelBuilder.Inspectors.PropertiesDependenciesModelInspector.GetProperties(ComponentModel model, Type targetType) +104Castle.MicroKernel.ModelBuilder.Inspectors.PropertiesDependenciesModelInspector.InspectProperties(ComponentModel model) +157Castle.MicroKernel.ModelBuilder.Inspectors.PropertiesDependenciesModelInspector.ProcessModel(IKernel kernel, ComponentModel model) +13Castle.MicroKernel.ModelBuilder.<>c__DisplayClass6.<BuildModel>b__4(IContributeComponentModelConstruction c) +22System.Collections.Generic.List`1.ForEach(Action`1 action) +11702442Castle.MicroKernel.ModelBuilder.DefaultComponentModelBuilder.BuildModel(IComponentModelDescriptor[] customContributors) +141Castle.MicroKernel.Registration.ComponentRegistration`1.Castle.MicroKernel.Registration.IRegistration.Register(IKernelInternal kernel) +82Castle.MicroKernel.DefaultKernel.Register(IRegistration[] registrations) +51Castle.Windsor.WindsorContainer.Register(IRegistration[] registrations) +28NGinnBPM.MessageBus.Windsor.MessageBusConfigurator.FinishConfiguration() in c:\devs\nginn-messagebus\NGinnBPM.MessageBus.Windsor\MessageBusConfigurator.cs:1050Slate.Iva.Web.Api.DependencyInjection.GetPublisherBus() in c:\Work\Slate.Iva\src\Slate.Iva.Web.Api\App_Start\DependencyInjection.cs:42lambda_method(Closure ) +62SimpleInjector.Lifestyles.SingletonLifestyleRegistrationBase`1.CreateInstanceWithNullCheck() +62System.Lazy`1.CreateValue() +411System.Lazy`1.LazyInitValue() +152System.Lazy`1.get_Value() +75SimpleInjector.Lifestyles.SingletonLifestyleRegistrationBase`1.BuildExpression() +16SimpleInjector.Registration.BuildExpression(InstanceProducer producer) +50SimpleInjector.InstanceProducer.BuildExpressionInternal() +38System.Lazy`1.CreateValue() +411System.Lazy`1.LazyInitValue() +152System.Lazy`1.get_Value() +75SimpleInjector.InstanceProducer.BuildExpression() +57I've seen a question on stack overflow about a similar issue here: http://stackoverflow.com/questions/22507189/could-not-load-file-or-assembly-newtonsoft-json-version-4-5-0-0-culture-neutrand I've tried all the answers - deleting the dependent assembly / reinstalling etc. none of it works.Rolling back to the older version of nginn is the only thing that works. I wonder if you have a dependency to v3.5 somewhere?Thanks~Brett
You received this message because you are subscribed to the Google Groups "nginn-messagebus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nginn-messageb...@googlegroups.com.
To post to this group, send email to nginn-me...@googlegroups.com.
Visit this group at http://groups.google.com/group/nginn-messagebus.