title: HTTP Error 403.14 - Forbidden - MVC 4 with IIS Express
body: <p>This seems like a question that has already been asked/answered many times. Its not.</p>
  
  <p><strong>Development Environment:</strong>
  VS 2012 and MVC 4. I am using the built in IIS Express to run the app. </p>
  
  <p>This error was not occurring until yesterday. It suddenly began to occur and I am stuck. Its strange that It occurs only in ONE scenario.</p>
  
  <p>When I try to access <code>http://localhost:49962/managescholars/</code>, it shows me the error </p>
  
  <pre><code>HTTP Error 403.14 - Forbidden
  The Web server is configured to not list the contents of this directory.
  </code></pre>
  
  <p>But using <code>http://localhost:49962/managescholars/Index</code> works fine. Other action methods of same controller also work fine. such as <code>http://localhost:49962/managescholars/create</code>. All other controllers work fine as well.</p>
  
  <p>I have tried adding the following to web.config.</p>
  
  <pre><code>&lt;system.webServer&gt;
    &lt;validation validateIntegratedModeConfiguration="false"/&gt;
    &lt;modules runAllManagedModulesForAllRequests="true" /&gt;
    &lt;handlers/&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p>I also have tried running the following command as administrator</p>
  
  <pre><code>%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir
  </code></pre>
  
  <p>But none of them worked. </p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I have modified my routes. They look as follows.</p>
  
  <pre><code>    public static void RegisterRoutes(RouteCollection routes)
      {
          routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
          routes.MapRoute(
              name: "ManageScholarLectures",
              url: "Manage/Lectures/{userFriendlyName}",
              defaults: new { controller = MVC.ManageLectures.Name , 
                              action = MVC.ManageLectures.ActionNames.Index, 
                              userFriendlyName = UrlParameter.Optional }
          );
  
          routes.MapRoute(
              name: "ManageScholarEdit",
              url: "Manage/Scholars/{userFriendlyName}",
              defaults: new { controller = MVC.ManageScholars.Name, 
                              action = MVC.ManageScholars.ActionNames.Edit }
          );
  
          routes.MapRoute(
              name: "Default",
              url: "{controller}/{action}/{id}",
              defaults: new { controller = MVC.Home.Name, 
                              action = MVC.Home.ActionNames.Index, 
                              id = UrlParameter.Optional }
          );
      }
  </code></pre>
  
  <p>I am using <code>T4MVC</code> template.</p>
  
  <p>It still does not work even if I leave the default route at the bottom and remove the first two routes. What have I done wrong?</p>
  
  <p>Thanks a lot in advance for your help.</p>