Re: [masstransit-discuss] Exception related to RabbitMQ.Client, Version=3.0.0.0 vs 3.0.4.0

420 views
Skip to first unread message

Berke Sokhan

unread,
May 1, 2013, 5:21:15 PM5/1/13
to masstrans...@googlegroups.com

Did you try to add a binding redirect to your applications configuration to just walkaround the problem?

02 May 2013 00:07 tarihinde "Etienne Tremblay" <etre...@gmail.com> yazdı:
Hi,

We added MassTransit to our project via nuget.  We also added the package MassTransit.RabbitMQ and MassTransit.Ninject.  We noticied that our project now has a reference to RabbitMQ.Client version 3.0.4.0.

When we try to get a new IServiceBus from ninject, we get this exception:

MassTransit.Exceptions.ConfigurationException: An exception was thrown during service bus creation ---> System.IO.FileLoadException: Could not load file or assembly 'RabbitMQ.Client, Version=3.0.0.0, Culture=neutral, PublicKeyToken=89e7d7c5feba84ce' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I think the MassTransit libraries were compiled with RabbitMQ.Client version 3.0 but the nuget package included 3.0.4.0 which cause a conflict?

--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/ZPRmjyDGrf8J.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Etienne Tremblay

unread,
May 1, 2013, 7:12:48 PM5/1/13
to masstrans...@googlegroups.com
I have this in my web.config, but this doesn't help.

  <runtime xmlns="">
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="RabbitMQ.Client" publicKeyToken="89e7d7c5feba84ce" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.4.0" newVersion="3.0.4.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>

On Wednesday, May 1, 2013 5:21:15 PM UTC-4, Berke Sokhan wrote:

Did you try to add a binding redirect to your applications configuration to just walkaround the problem?

02 May 2013 00:07 tarihinde "Etienne Tremblay" <etre...@gmail.com> yazdı:
Hi,

We added MassTransit to our project via nuget.  We also added the package MassTransit.RabbitMQ and MassTransit.Ninject.  We noticied that our project now has a reference to RabbitMQ.Client version 3.0.4.0.

When we try to get a new IServiceBus from ninject, we get this exception:

MassTransit.Exceptions.ConfigurationException: An exception was thrown during service bus creation ---> System.IO.FileLoadException: Could not load file or assembly 'RabbitMQ.Client, Version=3.0.0.0, Culture=neutral, PublicKeyToken=89e7d7c5feba84ce' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I think the MassTransit libraries were compiled with RabbitMQ.Client version 3.0 but the nuget package included 3.0.4.0 which cause a conflict?

--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsub...@googlegroups.com.

Etienne Tremblay

unread,
May 2, 2013, 10:56:14 AM5/2/13
to masstrans...@googlegroups.com
If I manually remove the reference to RabbitMQClient 3.0.4.0 in my project and add a reference to a local dll with version 3.0.0.0, then it works fine!  But then I lose nuget package integration.

Berke Sokhan

unread,
May 2, 2013, 11:05:44 AM5/2/13
to masstrans...@googlegroups.com

Interesting, it should had worked.

Are you sure that after adding binding redirect the message didnt change for another assembly? Or you put the element in the right application's config?

02 May 2013 02:12 tarihinde "Etienne Tremblay" <etre...@gmail.com> yazdı:
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.

To post to this group, send email to masstrans...@googlegroups.com.

Etienne Tremblay

unread,
May 2, 2013, 11:09:46 AM5/2/13
to masstrans...@googlegroups.com
I have 3 projects with MassTransit.  One web app works fine, one windows service also works fine and then a second web application where I did everything like I did with the other applications, but I get this exception when Ninject tries to get an instance of IServiceBus.  From the # of tests I did for this second web app, I am 100% sure that I had this in the right config.  Also like I said in my last post, changing the reference to 3.0.0.0 fixe this for now.

Thanks!


On Thursday, May 2, 2013 11:05:44 AM UTC-4, Berke Sokhan wrote:

Interesting, it should had worked.

Are you sure that after adding binding redirect the message didnt change for another assembly? Or you put the element in the right application's config?

02 May 2013 02:12 tarihinde "Etienne Tremblay" <etre...@gmail.com> yazdı:
I have this in my web.config, but this doesn't help.

  <runtime xmlns="">
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="RabbitMQ.Client" publicKeyToken="89e7d7c5feba84ce" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.4.0" newVersion="3.0.4.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>

On Wednesday, May 1, 2013 5:21:15 PM UTC-4, Berke Sokhan wrote:

Did you try to add a binding redirect to your applications configuration to just walkaround the problem?

02 May 2013 00:07 tarihinde "Etienne Tremblay" <etre...@gmail.com> yazdı:
Hi,

We added MassTransit to our project via nuget.  We also added the package MassTransit.RabbitMQ and MassTransit.Ninject.  We noticied that our project now has a reference to RabbitMQ.Client version 3.0.4.0.

When we try to get a new IServiceBus from ninject, we get this exception:

MassTransit.Exceptions.ConfigurationException: An exception was thrown during service bus creation ---> System.IO.FileLoadException: Could not load file or assembly 'RabbitMQ.Client, Version=3.0.0.0, Culture=neutral, PublicKeyToken=89e7d7c5feba84ce' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I think the MassTransit libraries were compiled with RabbitMQ.Client version 3.0 but the nuget package included 3.0.4.0 which cause a conflict?

--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsubscribe...@googlegroups.com.

To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/ZPRmjyDGrf8J.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsub...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.

Crash Dump

unread,
May 3, 2013, 12:35:48 PM5/3/13
to masstrans...@googlegroups.com
Hi Folks,
Having the same problem. But putting in the assembly binding into the applications configuration file is a work around for the moment, we'll probably end up putting it in the machine.config as we have some 15-20 different services and UI using this, but we need to upgrade MT for the SSL support for Rabbit.

Kind Regards
Noel.

Dru Sellers

unread,
May 4, 2013, 11:32:16 AM5/4/13
to masstrans...@googlegroups.com
I know chris is busy with his family this weekend. If you wanted to submit a PR with an update to the lastest RabbitMQ client would that help fix everyone's problems?????


To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.

To post to this group, send email to masstrans...@googlegroups.com.

Crash Dump

unread,
May 8, 2013, 4:46:00 AM5/8/13
to masstrans...@googlegroups.com
Just got VS2010 registered on my machine. Hopefully once I've GIT figured out (I'm sub-version all the way) I'll have a pull request in to you shortly.

Cheers
Noel
Noel.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/PRb4fFIVqcAJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsub...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.

Crash Dump

unread,
May 9, 2013, 3:39:35 AM5/9/13
to masstrans...@googlegroups.com
Posted the Pull request to 

MassTransit MassTransit, but phatboyg/MassTransit  seems a lot more active. Which is the correct one to post to?

Chris Patterson

unread,
May 9, 2013, 11:56:50 AM5/9/13
to masstrans...@googlegroups.com
Either one is fine.


To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.

To post to this group, send email to masstrans...@googlegroups.com.

Crash Dump

unread,
May 11, 2013, 10:29:52 AM5/11/13
to masstrans...@googlegroups.com
Thanks Chris. I posted a pull request with the MQ libraries updated and some SSL changes to allow SSL over RabbitMQ without requiring a client certificate.
Hope it's up to scratch.

Cheers
Either one is fine.


To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/-ojLaS7RNcMJ.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsub...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.

Chris Patterson

unread,
May 11, 2013, 12:16:19 PM5/11/13
to masstrans...@googlegroups.com
I put these on develop earlier this morning.


To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.

To post to this group, send email to masstrans...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages