Asp.Net MVC error 404 The request filtering module is configured to deny a request where the query string is too long.

If you create a new MVC projet and hit F5 to start the application. As you may know by now, Visual Studio 2013 doesn’t have Cassini, the internal web server inside Visual Studio. So, IIS Express is quickly automatically configured and the default website start.

RequestQueryStringIsTooLong

Unfortunatly, if I do nothing, I am having a issue with query string being too long. This is because it redirect to the login page which redirect to the login page and so on.

So far, I haven’t found solution, neither StackOverFlow. But, if you are using IIS, everything works. Personally, I am always using IIS, but I am still curious why the IIS express, even with a brand new project doesn’t work.

EDIT

I finally found that in IIS Express configuration file (located inside your document setting), I had windows authentication enabled. You need to remove this and to use anonymous authentication.

If you like my article, think to buy my annual book, professionally edited by a proofreader. directly from me or on Amazon. I also wrote a TypeScript book called Holistic TypeScript

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.