Search code examples
asp.net-mvciismodel-view-controllerwindows-server-2008-r2.net-framework-version

Deploy MVC Application to IIS 7.5


I have created a ASP.NET MVC Application with .Net Framework 4.5. I have tried to deploy in IIS 7.5 with Application Pool 4.0 but the following errors. Is there anything I should change in IIS Configuration or in Application Web.conf.

Thanks in advance !

Error 403. Directory Browsing Disabled

Error 404. Directory Browsing Now is Enabled


Solution

  • Try adding this to your web.config

    <system.webServer>
      <modules runAllManagedModulesForAllRequests="true"/> 
    </system.webServer>