Click here to Skip to main content
11,409,922 members (49,069 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WCF MSMQ
Hello,

I am trying to read some messages from MSMQ using NetMSMQBinding

I keep getting the following exception. Can someone point me how I can resolve this.
Please let me know if I need to share any more details.

The SecurityMode is Transport


System.ServiceModel.FaultException
The message with Action 'http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT' 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)

I tried changing the SecutityMode
When I changed the NetMSMQSecurityMode to "Both" or "Message" I get the following exception
System.ServiceModel.Security.MessageSecurityException
Security processor was unable to find a security header in the message. This might be because the message is an unsecured fault or because there is a binding mismatch between the communicating parties. This can occur if the service is configured for security and the client is not using security

Thanks,
Amit
Posted 10-Aug-12 1:09am
AmitDey18.6K

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 270
1 OriginalGriff 255
2 Maciej Los 138
3 Andy Lanng 115
4 Sascha Lefévre 85
0 Sergey Alexandrovich Kryukov 8,771
1 OriginalGriff 6,905
2 Maciej Los 3,390
3 Abhinav S 3,248
4 Peter Leow 3,059


Advertise | Privacy | Mobile
Web03 | 2.8.150414.5 | Last Updated 10 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100