c# - Receiving a 500 internal server error when I have a '%' symbol in the query string -


i trying diagnose problem client site has come across. when address search on website can specify % symbol wildcard searches. example can search be% return belfast etc.

this queries database , redirects results page, passing search criteria in querystring example results.aspx?criteria=search%20criteria%20is%20be%

this caused problems if searched %belf %be reserved character in url encoding. therefore coded replace % %25 (url encoding representation of % symbol). works fine on test machine, url results.aspx?criteria=search%20criteria%20is%20%25be .

this doesn't work on our clients website reason , can't work out why. page keeps error-ing with:

error code: 500 internal server error. request rejected http filter. contact server administrator. (12217)

any time search %be %fa %fe etc etc

does know if there iis setting or similar?

you might have urlscan installed on server. urlscan intercepts requests , reject them if detects invalid characters. meant protect website malicious attacks , sql injection. if don't configure correctly reject reasonable requests. take @ isapi filters on website , see if urlscan there.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -