I had the same problem. "requestValidationMode =" 2.0 " was set to web.config, [AllowHtml] was also set to the correct property, and I still have the error" potentially dangerous Request.Form detected value ... ".
But I noticed that the controller method was actually called (I was able to debug the method), so this meant that validation was actually disabled. In the call stack, I repeatedly found classes around the cache, such as "System.Web.Caching.OutputCacheModule" , and this led me to think that this has something to do with the cache. I turned off the entire controller this way: [OutputCache (NoStore = true, Duration = 0)] " .
Based on this, I also tried setting the cache location to OutputCacheLocation.None, and this did the trick. So I ended up with [OutputCache (NoStore = true, Duration = 0, Location = OutputCacheLocation.None)] , working and finally not checking and not interrupting my requests .
source share