Azure App Service outputs error when it receives a long URL. How do I fix this?

Open your Azure Portal. Go to App Service which you are using to host your CMS/Website.
Click on Advanced Tools.
1. Click Go. It will open Kudu App Service.
2. Click on Debug console >> CMD.
3. From the top explorer navigation, go to site/wwwroot and find your web.config file (if you do not have it, create it)
4. Click edit
5. It will open editor for you to edit your web.config file.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.web>
    <customErrors mode="Off"/>
    <httpRuntime maxQueryStringLength = "10000" />
  </system.web>
  <system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxQueryString="10000" />
      </requestFiltering>
    </security>
  </system.webServer>
</configuration>