Then I thought why not put the solution for others too (How generous :D )
The error was: "The message with To '[my service address]' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher."
And the sscenario was, I have a WCF service called security, which in turn adds a reference to another WCF service XYZ.
After a little analyzing, I found that security service is having wsHttpBinding whereas XYZ has BasicHttp.
The solution is to decorate your class with [ServiceBehavior(AddressFilterMode = AddressFilterMode.Any)]
e.g.,
[ServiceBehavior(AddressFilterMode = AddressFilterMode.Any)]
public class XYZ : IXYZ
{
}
No comments:
Post a Comment