MVC 5 on Windows Server 2008/iis 7

Source: Internet
Author: User

The site was deployed on 2008 and the results appeared

HTTP Error 403.14-forbidden The WEB server is configured to a list the contents of this directory.

I really don't know what the hell this TM is.

Http://cdonner.com/mvc-5-on-windows-server-2008iis-7.htm

This link is the original blog, the following is the meaning of this blog.

As the blogger says, Google has been talking about adding

<system.webserver><modules runallmanagedmodulesforallrequests= "true" ></modules></ System.webserver>

In fact, this sentence is not exactly the meaning. Of course, this passage is not indiscriminate. The exact reason for the direct MSDN documentation is clear.

Here is a counter example: http://www.bubuko.com/infodetail-610089.html This blogger is not read the text, only look at the code.

Donner means this: Remove the checkbox on the following module. Let it be inherited into local .

And then..... Then the wood has then, OK. The ghost knows why to become local.

After becoming a local, the Webconfig is automatically configured as follows:

    <modules>            <remove name= "UrlRoutingModule-4.0"/>  <add name= "UrlRoutingModule-4.0" type= " System.Web.Routing.UrlRoutingModule "precondition=" ></add>    </modules>

  

Post it for verification.

This is really a problem that makes people fall apart. Expect someone to tell me why.

MVC 5 on Windows Server 2008/iis 7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.