I am getting this error:
The length of the URL for this request exceeds the configured maxUrlLength value.
Looking around the closest thing I can find is in the web.config,
<requestFiltering> <requestLimits maxUrl="xxx"> </requestFiltering>
However this is not MaxUrlLength nor does it resolve the issue. Any ideas how to fix?
Remarks. The value of the MaxUrlLength property can be any integer, zero or greater. Extremely small values can make a Web site unusable. You can set this value in a configuration file by setting the MaxUrlLength attribute of the httpRuntime element.
The MaxRequestLength property specifies the limit for the buffering threshold of the input stream. For example, this limit can be used to prevent denial of service attacks that are caused by users who post large files to the server.
ASP.NET MVC configuration In ASP.NET apps, configuration uses the built-in . NET configuration files, web. config in the app folder and machine. config on the server. Most ASP.NET MVC and Web API apps store their settings in the configuration file's appSettings or connectionStrings elements.
As per Ashok's answer that would equate to:
<httpRuntime maxUrlLength="1024" relaxedUrlToFileSystemMapping="true"/>
within <system.web>
section of the web.config.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With