Issue After URL Routing using URL Rewrite 2 Module of IIS

108 views Asked by At

ASP.NET has detected data in the request that is potentially dangerous because it might include HTML markup or script.

The above error is being thrown after I use URL Rewrite 2 Module of IIS for url routing. I know the cause of the error that one of my input parameters contains a invalid URL character (i.e. '<').

I am just wondering that this error was not thrown earlier when I am not using URL Rewriting Module. Also How can I elegantly handle this error without setting validateRequest to FALSE as this is not recommended.My website is using asp.net 2.

0

There are 0 answers