If request is issed form localhost, this exception does not occur.
All solutions which I have found describe that this is caused by ad characters in url.
URL if this request http://1.2.3.4/Grid/Validate (ip addres changed) does not contain invalid characters.