You are not supposed to use the HttpContext returned by Current in the
IHttpHandler implementation. Rather, you should use the HttpResponse
returned to you through the HttpContext passed in through the context
parameter of the ProcessRequest method implementation.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"deerchao" <de******@gmail.comwrote in message
news:11**********************@x40g2000prg.googlegr oups.com...
I'm writing my IHttpHandler, but whenever I call members of
"HttpContext.Current.Response.Headers", I got an
PlatformNotSupportedException says "This operation requires IIS
integrated pipeline mode.".
Is there no way to use HTTP headers in custom HttpHandlers?
Thanks!