mikehadlow/EasyNetQ — Issue #7: Method Not Found - RabbitMQ.Client.IModel.QueueDeclare - Client v2.6.1.0
Author: DavidChristiansen
Created: 2011-11-19 23:52:20+00:00
State: open

A fairly simple implementation (so I thought) based on the examples in the current master.

```C#
_hutch = RabbitHutch.CreateBus("host=localhost", new QueueLogger());
_hutch.RespondAsync(HandleSMSRequest);
```

i've also tried (not that I think it would make much of a difference

```
_hutch.Subscribe("consumer", message => HandleSMSRequest(message));
```

The classes `SMSMessage` and `SMSMessageResponse` are both in a separate assembly from where the bus is being created.

Upon execution i get

System.MissingMethodException
Method not found: 'System.String RabbitMQ.Client.IModel.QueueDeclare(System.String, Boolean, Boolean, Boolean, System.Collections.IDictionary)'.
at EasyNetQ.RabbitBus.DeclareRequestResponseStructure(IModel channel, String requestTypeName)
at EasyNetQ.RabbitBus.<>c__DisplayClass13`2.b__10() in c:\Projects\EasyNetQ\EasyNetQ\RabbitBus.cs:line 352
at EasyNetQ.PersistentConnection.AddSubscriptionAction(Action subscriptionAction) in c:\Projects\EasyNetQ\EasyNetQ\PersistentConnection.c
s:line 58
at EasyNetQ.RabbitBus.RespondAsync[TRequest,TResponse](Func`2 responder) in c:\Projects\EasyNetQ\EasyNetQ\RabbitBus.cs:line 402

I am putting this down to an incompatibility with version 2.6.1.0 of RabbitMQ.Client. Do you have plans to support it?

Let me know if you need more information about my specific setup.

DC