Qudoos Qudoos - 2 years ago 169
ASP.NET (C#) Question

The request URL is invalid in IIS 7

here is my URL


There are no invalid characters in the URL itself as everything is encrypted. Still I am getting

Bad Request - Invalid URL
HTTP Error 400. The request URL is invalid.

I know the URL is awfully long and I was able to resolve that issue in my Cassini by adding this
httpRuntime maxUrlLength="512"

in the web.config

However in IIS7 even after playing around with the requestfiltering maxurl and maxquerystring values I have not been able to resolve this.

This is an asp.net mvc 3 application.

Answer Source

Your problem is you're not using a query string, but a path. A path has a maximum length of 255.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download