I have an MVC3 site with a controller action that has
[ValidateInput(false)]
One of the paramters is an xml string.
When an exception is thrown inside that action, elmah does not log the
exception.
I tracked it down to the method in Error.cs below throwing an exception about
"a potentially dangerous request....."
private static NameValueCollection CopyCollection(NameValueCollection collection)
{
if (collection == null || collection.Count == 0)
return null;
return new NameValueCollection(collection);
}
To work around the issue I turned off all input validation for the site.
Original issue reported on code.google.com by twobitb...@gmail.com on 18 Apr 2013 at 3:39
Original issue reported on code.google.com by
twobitb...@gmail.com
on 18 Apr 2013 at 3:39