I have created an ASP.NET WebApplication with Internet Template.
I have NOT modified anything in the RouteConfig class, meaning I am using default Route table only.
When I type the following URL insde the browser
http://localhost:8416/
Index view is retuning insde HomeController without any problem.
But, if I type the following URL
http://localhost:8416/EstimationTracker/
I am gettinger the following error.
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
But, if I type the following URL, view is returning fine (just appending /Index to the above URL).
http://localhost:8416/EstimationTracker/Index
My doubt is why Index action method is being not recognized as the default action method inside EstimationTracker controller or is something else happening?
For easy referece, the following is the code inside inside RouteConfig.cs file.
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }