title: Request Validation failed in .NET 4.0 even though explicity set in Page Directive
body: <p>I have a .NET page application that is failing it's request validation because of &quot;bad characters&quot; such as &quot;&lt; / &gt; %&quot;. This is a secure admin form behind password protected page, and I need users to be able to enter in these &quot;potentially harmful&quot; characters. This used to be working. But then I moved the directory to a new location and I am getting the below error. I have already explicitly set validateRequest=&quot;false&quot; in &lt;%@ Page %&gt; settings. I am running this application as VB.NET 4.0 on a Windows 2012 server on IIS 8.5. Any suggestions to get this page working?</p>
  <hr />
  <blockquote>
  <p>Description: ASP.NET has detected data in the request that is potentially dangerous because it might include HTML markup or script. The data might represent an attempt to compromise the security of your application, such as a cross-site scripting attack. If this type of input is appropriate in your application, you can include code in a web page to explicitly allow it. For more information, see <a href="http://go.microsoft.com/fwlink/?LinkID=212874" rel="nofollow noreferrer">http://go.microsoft.com/fwlink/?LinkID=212874</a>.</p>
  <p>Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client</p>
  </blockquote>