-2

I configured web.config file but still I got an error:

Request filtering is configured on the Web server to deny the request because the query string is too long.

enter image description here

Divyang Desai
  • 7,483
  • 13
  • 50
  • 76
Imran Ali
  • 21
  • 1
  • 7
  • 1
    Query string length cannot be controlled through the web.config file it's enforced by the browser - http://stackoverflow.com/questions/812925/what-is-the-maximum-possible-length-of-a-query-string – Denys Wessels Aug 22 '16 at 06:35

2 Answers2

0

maxRequestLength is for file uploads.

Try this instead under the system.web node

<httpRuntime maxUrlLength="1000" maxQueryStringLength="1000" />
timkly
  • 793
  • 6
  • 14
  • check for a location node then in the web.config.... and how long is the querystring being passed in? – timkly Aug 22 '16 at 07:06
0

you can do this to increase the limit

 <security >
    <requestFiltering>
      <requestLimits maxAllowedContentLength="[Bytes]" />
    </requestFiltering>
  </security>
Abhay
  • 47
  • 1
  • 10