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,079
  • 4
  • 39
  • 64
Andy Wan
  • 1,040
  • 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
  • 6,836
  • 1
  • 25
  • 44