Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 696821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:06:16+00:00 2026-05-14T03:06:16+00:00

Using Visual Studio 2008 and built-in web server. In a Web Handler .ashx file

  • 0

Using Visual Studio 2008 and 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 add an HTTP 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 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.

How do do I put the built-in web server into integrated pipeline mode?
Note: Not using full-fledged IIS

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T03:06:16+00:00Added an answer on May 14, 2026 at 3:06 am

    Try replacing

    context.Response.Headers.Add 
    

    with

    context.Response.AddHeader
    

    (courtesy of this site)

    I believe you have to be running IIS7 (in Integrated Pipeline mode) to use Headers.Add

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Visual Studio 2008 .NET 3.5 I'm using the built in web server to test,
I developed an application locally using the Visual Studio 2008 built-in web server and
I am using in built sql server 2005 which comes with visual studio 2008
I am using built-in SQL Server 2005 that comes along with Visual Studio 2008.
I'm looking into using Visual Studio 2008's built in unit test projects instead of
I am a rookie was using the Visual Studio 2008 built-in Unit Testing components,
I'm using Visual Studio 2008 and the built-in installation tools for a C# client
We're working on a project here in Visual Studio 2008. We're using the built-in
I've got a Web Service written using C# in Visual Studio 2008 (I've also
I have a WinForms application built using Visual Studio 2008. I added a Setup

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.