Today i was solving a strange behaviour, aka: bug.
Problem:
Executing the following line:
DataContext.SomeModelObject.Where(p => p.Name == name)
just gave me the invalid input error.
Inspecting the query with fiddler i saw that name had a ‘#’ in it.
Solution: Encoding the variable so it could be passed in the url solved my issue.
Hope this helps …