locked
the web server is configured to not list the contents of this directory RRS feed

  • Question

  • User-1083916677 posted

    I'm getting the error in the subject line with an MVC4 intranet app deployed to a Windows Server Web server runnig IIS 7.  Site will not return any mvc pages.  Seems like routing is not working.

    I've installed .net 4.5, checked that all files have been deployed, run aspnet_regiis -ir, checked that i'm using a .net 4.x app pool, and checked all iis settings against local iis site settings.   Site returns test .aspx page just fine.  Same site published to local iis 7.5 server works fine, naturally.

     

     

    Thursday, April 11, 2013 5:35 PM

Answers

  • User281315223 posted

    Have you tried setting the following within your web.config file : 

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

    You can find a few other possible suggestions in this Stack Overflow thread (see the additional links) as well (as there are a variety of issues that could cause this problem).

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 12, 2013 12:58 AM

All replies

  • User281315223 posted

    Have you tried setting the following within your web.config file : 

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

    You can find a few other possible suggestions in this Stack Overflow thread (see the additional links) as well (as there are a variety of issues that could cause this problem).

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 12, 2013 12:58 AM
  • User-1083916677 posted

    That did the  trick!  I was starting to lose some hair over this.

    Friday, April 12, 2013 11:12 AM
  • User-848409960 posted

    I had the Same Situation hat's off!

    Wednesday, May 22, 2013 5:21 PM