Anyone ever run into the following before? I ran into this regarding a request into the SharePoint Rest API.
The length of the URL for this request exceeds the configured maxUrlLength value.
This because the IIS default maximum length for an URL is 260 characters. If a URL request is longer, the above error will occur.
To fix this you can increase the maxURLlength value, add it to your web.config file in the IIS virtual Directory.
<configuration> <system.web> <httpRuntime maxUrlLength="5000" /> </system.web> </configuration>
It will be likely you will already have most of this snippet in place so don’t break your config; just add the maxUrlLength property into your existing httpRuntime section and you should be good to go. Do know any web.config changes may cause a service interruption so test in dev, beta, QA and pre-prod before ever changing in prod! Hope this helps, questions are welcome!