Visual Studio 2008 built-in web server raises integrated pipeline error on Http Header manipulation
Posted
by jdk
on Stack Overflow
See other posts from Stack Overflow
or by jdk
Published on 2010-03-23T18:20:33Z
Indexed on
2010/03/23
18:23 UTC
Read the original article
Hit count: 417
visual-studio-2008
|embeddedwebserver
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
© Stack Overflow or respective owner