IIS のバージョンに関する情報を応答ヘッダーから削除したいと考えています。Global.asax には Application_PreSendRequestContent イベントがあります。または、IHttpModule を実装して次のように実行できます。
void context_PreSendRequestContent(object sender, EventArgs e)
{
HttpContext context = ((HttpApplication)sender).Context;
...
また
static void OnPreSendRequestHeaders(object sender, EventArgs e)
{
// remove the "Server" Http Header
HttpContext.Current.Response.Headers.Remove("Server");
しかし、エラーが発生しました: {"This operation requires IIS integrated pipeline mode."}
context.Response.Headers プロパティを読みたいとき。Windows XP と VS 2008 を使用しています。
ありがとう