Asp.net-mvc – ASP.NET MVC3 In IIS 7.5

asp.netasp.net-mvcasp.net-mvc-3iis-7.5

Hi
I want to publish an MVC 3 site in Windows Server 2008 R2 SP1. I installed MVC 3 and MVC 2. When I created an MVC 2 site, it worked fine but the MVC 3 site did not work. I installed MVC 3 first and when the site did not work, I installed MVC 2 and tested the other (MVC 2) site and every thing was ok. The problems is MVC 3.

ANY HELP PLEASE
Here is the error:

Error Summary
HTTP Error 403.14 – Forbidden
The Web server is configured to not list the contents of this directory.
Detailed Error Information
Module DirectoryListingModule
Notification ExecuteRequestHandler
Handler StaticFile
Error Code 0x00000000
Requested URL https://mywebsite.test.own:443/
Physical Path D:\WebSite
Logon Method Anonymous
Logon User Anonymous
Most likely causes:

A default document is not configured for the requested URL, and directory browsing is not enabled on the server.

Things you can try:

If you do not want to enable directory browsing, ensure that a default document is configured and that the file exists.
Enable directory browsing using IIS Manager.
    Open IIS Manager.
    In the Features view, double-click Directory Browsing.
    On the Directory Browsing page, in the Actions pane, click Enable.
Verify that the configuration/system.webServer/directoryBrowse@enabled attribute is set to true in the site or application configuration file.

Links and More Information This error occurs when a document is not specified in the URL, no default document is specified for the Web site or application, and directory listing is not enabled for the Web site or application. This setting may be disabled on purpose to secure the contents of the server.

View more information ยป

Best Answer

It looks like the request is going to the static file handler and is not getting into the MVC stack at all. Some things to check...

In the config file do you have runAllManagedModulesForAllRequests set to true on the element?

Are you running in an application pool configured for .NET 4 and Integrated Pipeline mode?

That's all I can think of right now, but if I have other thoughts I'll update the post.