win2008 IIS7 No Prefix URL deployment problem MVC4 MVC URL mapping _win Server

Source: Internet
Author: User

The preface and the Middle passage are all the processes and ways of thinking that I have found the problem. Not interested can skip to see the problem and solve later.

Objective:

The problem occurs when the site is completed and deployed to the server. Thought it was the easiest job. The result was a tragedy. The IIS7 is used on Windows Server 2008 R2. URL redirection with no suffix is not recognized. A lot of people will say that the problem is very common ah, a lot of information on the Internet. Actually, I'm going to give you the most official solution to the problem today.

The end of the nonsense. First of all, I searched a lot and found a few problems later.
First, the solutions offered are old. Many sites are copying each other. Most of the maps are gone.
Second, there are also most of the maps are IIS6 this version of the picture.
Third, the most pit dad is this. All information is to add a * asterisk mapping, seemingly the problem solved. But there are a lot of sequelae. For example, when you really need to visit the last file, there will be problems.
Four, I feel like this method is very cottage AH. Since Microsoft itself has made it a style without suffix does it not provide a way?
So I went through the relentless search. On the official website. Found the same problem with a foreigner. The following is the official approach.

Problem:

Microsoft MVC4 Development after the URL address is redirected through the page. So there is no suffix. IIS is not recognized.

Solve:

Microsoft gave the official solution a long time ago, but there are few people in the country who seem to know (and probably many people who know that it's too easy to send a question online).
The official provided a patch to handle URL no suffix
Download Address: http://support.microsoft.com/kb/980368
Download the installation server directly. Okay, now you don't need to add any mappings. Your IIS7 can also support the no-prefix redirection page.

End:
The problem is simply to download a patch and then install it. It would be nice to pass over the problem. Don't say I'm too retarded. I just wanted to share some of the questions that I actually encountered but were not easy to find.
Please give me a reply if it is helpful to you. It's a great motivator for me.

Reprint this article please mark the source Http://www.cnblogs.com/YouyouWang

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.