AddressFilter mismatch in EndpointDispatcher

I have a WCF web application that uses the WCF class library. My project is a WCF web project, and I'm hosting myself.

My problem is that all my web service methods hang with:

And "Unable to automatically go to the server ... etc.".

Error (not very useful):

The operation has timed out 

When I call the same method (s) using the WCF test client, I get the correct answer and everything goes smoothly.

So, something is wrong with my web application.

Following a similar entry, I used the trace viewer. I get an error message:

 The message with To 'http://localhost:8731/Design_Time_Addresses/Authentication/mex/mex' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher. Check that the sender and receiver EndpointAddresses agree. 

After reading the related post, I tried to add:

 [ServiceBehavior(AddressFilterMode=AddressFilterMode.Any)] 

And recompiling my class library and updating my services to no avail ... still freezes.

I tried to add both my web service and my web project as launch projects, but I still cannot enter the code. I also have all the relevant DEBUG attributes in Web.config and App.config.

Are there any suggestions?

+4
source share
2 answers

Not knowing what your configuration looks like, it's hard to say what's wrong. However, why does your URL have / mex twice in it? Are you sure right?

-1
source

From my experience, the mex / mex error occurs when I update a service link in Visual Studio. I came to the conclusion that this is just part of how Visual Studio determines how to update a web service before

+1
source

All Articles