Re: [nginn-messagebus] Cannot Upgrade to v1.2 due to JSON Versioning Issues

13 views
Skip to first unread message

Rafal Gwizdala

unread,
Nov 12, 2015, 1:50:55 AM11/12/15
to nginn-me...@googlegroups.com
Hi Brett, I had an occasion to look into this
Looks like my build script (still using Nant...) wasn't updated in a while and used old version of the Newtonsoft library. I happily updated the dependencies in Visual Studio but forgot about this one
So now I published a next version - 1.2.1 from my Visual Studio build (.net 4.5!) and hope this fixes the problem. 
Sorry about that - need to clean this up 
Let me know if the new version works better
R


On Tue, Nov 10, 2015 at 6:57 PM, Brett Bailey <br...@brettbailey.net> wrote:
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 &#39;Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null&#39; or one of its dependencies. The located assembly&#39;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) +0
   System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters() +65
   System.Reflection.RuntimeMethodInfo.GetParametersNoCopy() +13
   System.Reflection.RuntimePropertyInfo.GetIndexParametersNoCopy() +75
   System.Reflection.RuntimePropertyInfo.GetIndexParameters() +10
   Castle.MicroKernel.ModelBuilder.Inspectors.PropertiesDependenciesModelInspector.HasParameters(PropertyInfo property) +10
   Castle.MicroKernel.ModelBuilder.Inspectors.PropertiesDependenciesModelInspector.IsValidPropertyDependency(PropertyInfo property) +25
   System.Linq.WhereArrayIterator`1.MoveNext() +49
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +445
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +58
   Castle.MicroKernel.ModelBuilder.Inspectors.PropertiesDependenciesModelInspector.GetProperties(ComponentModel model, Type targetType) +104
   Castle.MicroKernel.ModelBuilder.Inspectors.PropertiesDependenciesModelInspector.InspectProperties(ComponentModel model) +157
   Castle.MicroKernel.ModelBuilder.Inspectors.PropertiesDependenciesModelInspector.ProcessModel(IKernel kernel, ComponentModel model) +13
   Castle.MicroKernel.ModelBuilder.&lt;&gt;c__DisplayClass6.&lt;BuildModel&gt;b__4(IContributeComponentModelConstruction c) +22
   System.Collections.Generic.List`1.ForEach(Action`1 action) +11702442
   Castle.MicroKernel.ModelBuilder.DefaultComponentModelBuilder.BuildModel(IComponentModelDescriptor[] customContributors) +141
   Castle.MicroKernel.Registration.ComponentRegistration`1.Castle.MicroKernel.Registration.IRegistration.Register(IKernelInternal kernel) +82
   Castle.MicroKernel.DefaultKernel.Register(IRegistration[] registrations) +51
   Castle.Windsor.WindsorContainer.Register(IRegistration[] registrations) +28
   NGinnBPM.MessageBus.Windsor.MessageBusConfigurator.FinishConfiguration() in c:\devs\nginn-messagebus\NGinnBPM.MessageBus.Windsor\MessageBusConfigurator.cs:1050
   Slate.Iva.Web.Api.DependencyInjection.GetPublisherBus() in c:\Work\Slate.Iva\src\Slate.Iva.Web.Api\App_Start\DependencyInjection.cs:42
   lambda_method(Closure ) +62
   SimpleInjector.Lifestyles.SingletonLifestyleRegistrationBase`1.CreateInstanceWithNullCheck() +62
   System.Lazy`1.CreateValue() +411
   System.Lazy`1.LazyInitValue() +152
   System.Lazy`1.get_Value() +75
   SimpleInjector.Lifestyles.SingletonLifestyleRegistrationBase`1.BuildExpression() +16
   SimpleInjector.Registration.BuildExpression(InstanceProducer producer) +50
   SimpleInjector.InstanceProducer.BuildExpressionInternal() +38
   System.Lazy`1.CreateValue() +411
   System.Lazy`1.LazyInitValue() +152
   System.Lazy`1.get_Value() +75
   SimpleInjector.InstanceProducer.BuildExpression() +57





and 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.

Reply all
Reply to author
Forward
0 new messages