Visual Studio 2008 built-in web server raises integrated pipeline error on Http Header manipulation
- by jdk
Using Visual Studio 2008, built-in web server.
In a Web Handler .ashx file
public void ProcessRequest(HttpContext context) {
context.Response.ContentType = MimeType_text_xvcard;
context.Response.Headers.Add(HttpHeader_ContentLength, "2138");
when I try to added a header I get the exception
This operation requires IIS integrated
pipeline mode.
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.
Exception Details:
System.PlatformNotSupportedException:
This operation requires IIS integrated
pipeline mode.
I can find information about this on the Internet but need specific info about how to work with Integrated Pipeline mode (presumably through web.config?) to allow HTTP headers to be manipulated.
Note: I am using the Visual Studio built-in web server instead of full-fledged IIS