Iis7 request format is unrecognized.

Source: Internet
Author: User

In the morning, my colleague reported an error while installing the program and asked me to check the cause. Finally, I found that a website could not be opened. The error message is as follows:

 

Error 1: The Web server is configured to not list the contents of thisdirectory.

 

Solution: enable directory browsing on the IIS Console

 

 

Error 2: request format is unrecognized.

 

Solution:

 

Find the Web. config file and add the following information:

 

<Configuration> <system. web> <WebServices> <protocols> <Add name = "httpget"/> <Add name = "httppost"/> </protocols> </WebServices> </system. web> </configuration>

 

Cause: the get and post versions on ASP. net2.0 or later are disabled by default, and you need to change web. config to enable it.

 

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.