I want to remove information about IIS version from Response Headers. In Global.asax is Application_PreSendRequestContent event or I can implement IHttpModule and do it in:
void context_PreSendRequestContent(object sender, EventArgs e)
{
HttpContext context = ((HttpApplication)sender).Context;
...
or
static void OnPreSendRequestHeaders(object sender, EventArgs e)
{
// remove the "Server" Http Header
HttpContext.Current.Response.Headers.Remove("Server");
But I got error: {"This operation requires IIS integrated pipeline mode."}
when I want to read context.Response.Headers property. I have Windows XP and VS 2008.
Thanks