title: <httpRuntime requestValidationMode="2.0" /> doesn't work (using IIS 6.0)
body: <p>I'm getting errors with an application on our test web server, which has .NET 4.0 installed, when I input HTML into a form.  I get the usual errors of:</p>
  
  <blockquote>
    <p>A potentially dangerous Request.Form value was detected from the
    client</p>
  </blockquote>
  
  <p>This is being caused by the change in .NET 4.0 that disables switching off automatic validation for HTML input. I can fix this on my local development machine by adding the </p>
  
  <pre><code>&lt;httpRuntime requestValidationMode="2.0" /&gt;
  </code></pre>
  
  <p>directive to the <code>&lt;system.web&gt;</code> section of my root web.config, and .NET then honours the <code>&lt;pages validateRequest="false" /&gt;</code> directive that's in the same root web.config.  Strangely, I needed to restart IIS on my local machine (which is version 5.1) for this change to work.</p>
  
  <p>When I deploy the root web.config to our test server however, I'm still getting the validation errors.  I've tried using <code>run &gt; iisreset</code>, stopping and starting IIS (which is version 6.0 on the test server), and I've even restarted the server to fully clear out .NET.  My application is definitely picking up the new root web.config (I've tested this), however the <code>&lt;httpRuntime requestValidationMode="2.0" /&gt;</code> directive seems to just be ignored.</p>
  
  <p>My application is configured as a .NET 4.0 application on both my local machine and on the test server.  I've tried rebuilding the application and redeploying it to the test web server.  Can anyone suggest what I need to do to get this working?</p>
  
  <p>Thanks in advance, Chris</p>