is an IIS error telling you the length of the given URL exceeds a limit. IIS default maximum length for a URL is defined by the
The length of the URL for this request exceeds the configured maxUrlLength value
HttpRuntimeSection.MaxUrlLength property. Its value is 260 characters. This may cause problems with longer than configured
maxUrlLength URL’s, and here is how to resolve this issue…
HttpRuntimeSection.MaxUrlLength property gets or sets the maximum possible length, in number of characters, of the URL in an HTTP request for Windows Server IIS. If an HTTP request is made with a longer URL than defined by
maxUrlLength, the following error message is displayed:
Server Error in '/' Application. The length of the URL for this request exceeds the configured maxUrlLength value. [HttpException (0x80004005): The length of the URL for this request exceeds the configured maxUrlLength value.] System.Web.HttpRequest.ValidateInputIfRequiredByConfig() +9020628 System.Web.PipelineStepManager.ValidateHelper(HttpContext context) +59
Fortunately you can fix this error by increasing the
maxUrlLenght value for IIS. Add to your
<configuration> <system.web> <httpRuntime maxUrlLength="500" /> </system.web> </configuration>
Another option to increase the URL size limit is to configure the
<requestLimits> element. The
<requestLimits> element specifies limits on HTTP requests that are processed by the web server.
These limits include the maximum size of a request, the maximum URL length, and the maximum length for a query string.
Wondering how to enable NTFS long paths in Windows Server 2016 to increase the 260 characters limitation for NTFS paths?
Maximum allowed content length,
Maximum URL length (Bytes) and
Maximum query string (Bytes) to your desired values. The default maximum query string length in IIS is 2048 characters.
When a query string is received by IIS that is longer than 2048 characters, IIS throws a
404.15 - Query String too long error. A value of 2083 characters is the maximum URL length for Internet Explorer by default, and an
404.14 – URL too long error is thrown when a longer URL is requested.
You can increase this maximum URL length value in your
web.config, but it’s still browser specific.
If you want to step in to help me cover the costs for running this website, that would be awesome. Just use this link to donate a cup of coffee ($5 USD for example). And please share the love and help others make use of this website. Thank you very much!
My name is Jan. I am not a hacker, coder, developer, programmer or guru. I am merely a system administrator, doing my daily thing at Vevida in the Netherlands. With over 15 years of experience, my specialties include Windows Server, IIS, Linux (CentOS, Debian), security, PHP, websites & optimization.
How to: Determine which .NET Framework versions are installed
WsusPool keeps crashing: stops again and again
3 Important security measurements for Windows Server & IIS
Enable NTFS long paths in Windows Server 2016 by Group Policy
The WinCache effect: Save with object caching
Tips to speed up WordPress, serve gzip compressed static HTML files