<pages validateRequest=“false” /> and <httpRuntime requestValidationMode=“2.0” /> not working
问题 I've inherited an MVC asp.net app using framework 4.0. I'm getting the dreaded "A potentially dangerous Request.Form value was detected from the client" error and all my research leads me to believe that this should fix it: <system.web> <httpRuntime requestValidationMode="2.0" /> <pages validateRequest="false" /> </system.web> However, I've added that to my web.config and still get the error. I'm at the end of my rope here, what am I missing? 回答1: In addition to what you did you also have to