15

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?

lostinplace
  • 1,538
  • 3
  • 14
  • 38
  • 5
    This is a valid question for asp.net programmers as () by the guidelines it describes a problem interacting with: "software tools commonly used by programmers" – lostinplace Jul 25 '13 at 15:04

2 Answers2

21

Maybe:

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

OR

Community
  • 1
  • 1
webdeveloper
  • 17,174
  • 3
  • 48
  • 47
21

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

enter image description here

opewix
  • 4,993
  • 1
  • 20
  • 42
  • 1
    This did the trick! Thanks a lot of the post! Any ideas on what exactly does that do and why is it needed? I assumed that IIS should come with all of the prerequisites that it might need? – Web Dev Apr 14 '17 at 10:23
  • 2
    This did the trick!! Why doesn't Microsoft mention this in documentation?? And yes, why wasn't it installed in the whole IIS installation? – Alen Šimunic Mar 01 '18 at 07:47
  • Yet again the IT department forgot to add this to the developer image.. Thanks – FiringSquadWitness Aug 05 '18 at 05:34
  • You are right, this option must be enabled to make MVC ASP.NET work correctly – Mohamad Osama Mar 28 '22 at 18:57