title: Visual Studio 2008 built-in web server needs integrated pipeline mode for Adding Http Header
body: <p>Using Visual Studio 2008 and built-in web server.</p>
  
  <p>In a Web Handler .ashx file</p>
  
  <pre><code>    public void ProcessRequest(HttpContext context) {
  
          context.Response.ContentType = MimeType_text_xvcard;
          context.Response.Headers.Add(HttpHeader_ContentLength, "2138");
  </code></pre>
  
  <p>when I try to add an HTTP header I get the exception:</p>
  
  <blockquote>
    <p>This operation requires IIS integrated
    pipeline mode.</p>
    
    <p>Description: An unhandled exception
    occurred during the execution of the
    current web request. Please review the
    stack trace for more information about
    the error and where it originated in
    the code. </p>
    
    <p>Exception Details:
    System.PlatformNotSupportedException:
    This operation requires IIS integrated
    pipeline mode.</p>
  </blockquote>
  
  <p>I can find information about this error on the Internet  but need specific info about how to presumably enable Integrated Pipeline mode (through web.config?) to allow HTTP headers to be manipulated.  </p>
  
  <p>How do do I put the built-in web server into integrated pipeline mode?
  <strong>Note:</strong> Not using full-fledged IIS</p>