0

I am using asp.net 3.5, there are some requests with special characters (for example ./ and <) return "bad request" by asp.net application, it looks like the Application_Error method in Global.asax.cs cannot handle these errors, are there any other methods to handle these request errors?


Requests examples:

http://localhost/abc./abc.aspx

http://localhost/ab<c.aspx

Akram Shahda
  • 14,655
  • 4
  • 45
  • 65
Andy Wan
  • 1,090
  • 2
  • 11
  • 23

1 Answers1

0

This is being caused because the characters specified can cause security issues. Further information.

Take a look at A potentially dangerous Request.Form value was detected from the client for how to handle these

Community
  • 1
  • 1
detaylor
  • 7,112
  • 1
  • 27
  • 46