1
Vote

A potentially dangerous Request.Form value was detected from the client

description

Hi,

I've added all the settings listed by Microsoft to disable the request validation
TEXT

However the problem persists.

I've running this on .net 4.5 / Windows Server 2012 R2.

I've confirmed in IIS that Request Validation is listed as false.

I can only assume this is something inside the code.

Regards

comments

Solace wrote Mar 2, 2015 at 5:18 PM

I've opened the source an added the missing directive to disable RequestValidation.

HomeController.cs
24: [HttpPost]
25: [ValidateInput(false)]

And

Web.config
18: <httpRuntime requestValidationMode="2.0" targetFramework="4.5" />

All referenced from MS's document located here:
Request Validation in ASP.NET