what will be the higher range for maxUrlLength and maxQueryStringLength

I am getting Remote server returned an error: (400) Bad Request . exception when i try to upload zip file to Web API hosted on remote server.

my web.config

<httpRuntime maxRequestLength="300000000" />

IIS displays:

  • Max Querystring = 2048
  • Max URL length = 4096
  • found that my URL exceeds this limit. googled to figure maximum value for QueryString and URLLength. But, I am not able to find constant result for this,

    I tried with:

    <httpRuntime maxRequestLength="300000000" 
                 relaxedUrlToFileSystemMapping="true" 
                 maxUrlLength="65536" maxQueryStringLength="2097151"/>
    
    链接地址: http://www.djcxy.com/p/42032.html

    上一篇: 新的Asp.Net MVC5项目产生无限循环登录页面

    下一篇: maxUrlLength和maxQueryStringLength的更高范围是什么