The 400 requestlength error is fixed in the workspace of K2.

Source: Internet
Author: User
Tags iis error log

When an HTTP Error occursCodeThe value 400 indicates that the request initiated by the client does not comply with the server's restrictions on the request, or the request itself has certain errors.

You can use fiddler2 to check whether the request length exceeds the default length of maxrequestbytes by 16384.

The IIS Error Log also shows

C: \ windows \ system32 \ logfiles \ httperr \ httperr1.log Error

05:33:00 10.13.64.91 12433 10.14.12.25 80 HTTP/1.1 get/workspace/navigation. aspx 400-requestlength-

05:33:16 10.13.64.91 12433 10.14.12.25 80---timer_minbytespersecond-

05:36:36 10.13.64.91 12516 10.14.12.25 80 HTTP/1.1 get/workspace/navigation. aspx 400-requestlength-

05:36:39 10.13.64.91 12518 10.14.12.25 80 HTTP/1.1 get/workspace/navigation. aspx 400-requestlength-

The solution is to change the registry.

HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ HTTP \ Parameters

Maxfieldlength = 65534 and maxrequestbytes = 65534

For more information about the parameters, see http. sys registry settings for IIS.

1. Run the following command to restart the system HTTP service (administrator privilege required)
Net stop HTTP

Net start HTTP

2. Run the following command to restart the IIS service.
Iisreset

ReferenceArticle:

HTTP 400 Error reproduction experiment and Solution

Fixing 400 requestlength issue in SharePoint and IIS

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.