Reputation: 8266
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?
Upvotes: 3
Views: 1606