Software Enthusiastic
Software Enthusiastic

Reputation: 26425

Why do I get a "Platform Not Supported Exception" while adding new Response Header?

Why do I get a "Platform Not Supported Exception" while adding a new Response Header? I am debugging a website using Visual Studio web server.

Response.Headers["X-XRDS-Location"] = url

Exception Message:

This operation requires IIS integrated pipeline mode.

Any help would be appreciated.

Upvotes: 9

Views: 10291

Answers (1)

Levi
Levi

Reputation: 32818

Response.Headers.Add() works only in IIS7 integrated pipeline mode. Use Response.AddHeader() instead. This method will work on all platforms.

Upvotes: 16

Related Questions