Maximum request length on asp.net 2.0

I am working on ASP.NET version 2.0 and IIS 6. I call the aspx popup page from the main page, invoking its URL and passing it a request. For a specific case, the length of my request exceeds 2000 characters. Thus, the popup window is opened for the first time, but whenever a reverse transmission appears on the popup screen, I get an Internet connection error. I am sure that this is due to the long length of the request, because it works fine when I reduce the length of the request.

Is there a way to increase the maximum allowed length of the transmitted string. Can it be configured via web.config or in some IIS settings.

+5
source share
3 answers

2048. (MSDN). maxQueryStringLength httpRuntime web.config.

, .

, .

+4

, ASP.Net MVC 4

<system.web>

    <httpRuntime maxQueryStringLength="6000" />

  </system.web>

  <system.webServer>

        <security>

            <requestFiltering>
                <!--Query String Length-->
                <requestLimits maxQueryString="6000" />
            </requestFiltering>         
        </security>

  </system.webServer>

+4

All Articles