Thread: HTTP Error 400 – Bad Request – Request Too Long

When you get error given below while browsing application hosted on IIS 6 or 7.0.


Bad Request – Request Too Long


HTTP Error 400. The size of the request headers is too long.

400 - Bad Request

Solution :

Create DWORD keys in register @ HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters”

Name Value
MaxFieldLength 32767(Decimal)
MaxRequestBytes 16777216(Decimal)

and reboot the server as http.sys will not take these parameters in effect until you reboot the server.

Related Article:


About itmiddleware
Working as Sr Software Engineer for reputed MNC Bank on Web and Middleware

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: