Azure Service Bus Lab: ContractFilter Mismatch Error

If you are following the Windows Azure (November CTP) SDK, and you are implementing the .NET Service Bus (AppFabric) Hands on lab called “Introduction to the .NET Service Bus”, then there is an error that you need to correct.

In task 4 titled “Task 4 – Creating the WCF Client Project “, the lab says that you create an interface IEchoContract and apply to it the following attribute:

[ServiceContract(Name = “EchoContract”, Namespace = “”)]

Well the Name is wrong. if you have followed the lab manual precisely, then the Name should be “IEchoContract” instead.

If you run the sample without correcting the issue, you will be faced with the following exception:

The message with Action ‘’ cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).”

This problem can also appear if the namespace is different between the client and the service, so make sure to use the same namespace


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s