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?

1
  • 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" Commented Jul 25, 2013 at 15:04

2 Answers 2

23

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

enter image description here

Sign up to request clarification or add additional context in comments.

4 Comments

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?
This did the trick!! Why doesn't Microsoft mention this in documentation?? And yes, why wasn't it installed in the whole IIS installation?
Yet again the IT department forgot to add this to the developer image.. Thanks
You are right, this option must be enabled to make MVC ASP.NET work correctly
21

Maybe:

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

OR

3 Comments

Damnit!!! I discovered this 30 minutes later as well. Looks like I won't get to answer my own question.
What file are you supposed to put this in?
as I read your comment and tried to figure out, where to put it, and my guess was: webconfig, I discovered, the folder did not contain any webconfig. added that as fast as I could and it's running now

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.