IIS not running ASP.NET MVC application

2019-03-15 13:43发布

问题:

I have deployed an asp.net MVC application to my IIS7 server. When I attempt to browse the dafault route I get the message

HTTP Error 403.14 - Forbidden

The Web server is configured to not list the contents of this directory.

It's clear to me that it is not loading/processing the global.asax, but I have no idea why. I've deployed another MVC application to this same location/app pool and it works fine.

Does anyone have any idea how to debug a problem like this?

回答1:

Maybe:

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

OR

  • ASP.NET MVC on IIS 7.5
  • ASP MVC in IIS 7 results in: HTTP Error 403.14 - Forbidden
  • Can't run ASP.NET MVC 2 web app on IIS 7.5


回答2:

I've tried a lot, and finally one checkbox did the trick