I have ASP.NET MVC application with action which should process posted XML data. At Cassini is working everything fine but when I deploy application to IIS6 I am getting following error.
A potentially dangerous Request.Form value was detected from the client (xml="<?xml version="1.0" ...").
I tried decorate controller with ValidateInput(false)
attribute and I also add following method to controller.
protected override void Initialize(RequestContext requestContext)
{
ValidateRequest = false;
base.Initialize(requestContext);
}
Nothing help.
Do you have any other idea how can I get rid off this annoying request validation?
Edit: Sorry. I was totally my error as usual. After I setup wildcard mapping everything is working fine.