Thursday, May 5, 2011

Why do I am getting "Platform Not Supported Exception" while adding new Response Header?

Why do I am getting "Platform Not Supported Exception" while adding new Response Header? I am debugging website using Visual Studio webserver.

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

Exception Message: "This operation requires IIS integrated pipeline mode."

Any help would be appreciated...

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

    Software Enthusiastic : Thank you very much...

0 comments:

Post a Comment