Reputation: 3660
I have an ASP.NET MVC Route URL set to "/Services" which points to a controller action, but there is also a directory that contains my C# Services classes called "Services" which users cannot navigate to. This is causing issues with my route. It throws the following error:
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
Does anyone know how to overcome this?
Thank you
Upvotes: 2
Views: 1035
Reputation: 5241
You would probably be best to not have this sort of clash but you can disable that feature by setting the RouteExistingFiles property on RouteCollection.
Upvotes: 3