I'm trying to ignore every URL that is of the form http://domain/Services/{serviceName}.svc/mex?wsdl so I added the following to the top of my RegisterRoutes method in the Global.asax file:
routes.IgnoreRoute("{resource}/Services");
routes.IgnoreRoute("{resource}/Services/{pathInfo}.svc");
This did not solve the problem and it is still trying to get resolved by the default route which obviously fails.
The problem started when I try to browse a WCF service (this works), but then when I try to view its metadata, I get a 404 Error.
Any suggestions?
routes.IgnoreRoute("{Services}/{*pathInfo}");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With