500 for long iis7 url

I was getting 404 errors for some long URLs on the website I am developing. After a little digging, I found that this happens when the length of certain aspects of the URL exceeds custom limits in IIS7. In this case, the maxQueryString attribute of the requestLimits property must be increased in the web.config file

<system.webServer>
<security>
  <requestFiltering>
    <requestLimits maxQueryString="4096" maxAllowedContentLength="4096" maxUrl="8192" >
    </requestLimits>
  </requestFiltering>
</security>

This instantly fixed the problem on my development server, but on the remote server I now get:

500 - Internal server error.

There is a problem with the resource you are looking for, and this cannot be displayed.

And that all the information he gives me.

+2
source share
4

Flash, POST, URL-. . , , POST GET.

+1

, /- Windows Server 2008 ( 2008 R2)? , , IIS 7 +.

+1

URL-. (Bing, Yahoo, Google) , . .

, . ( !), .

0

GET URL. IE 2,083 , . URL. .

http://www.boutell.com/newfaq/misc/urllength.html

http://support.microsoft.com/kb/q208427

RFC 2616, " - HTTP/1.1", URL, , .

POST GET, .

0

Source: https://habr.com/ru/post/1672245/


All Articles