When i remove response header content in mvc it doesn't remove server:Microsoft-IIS/10.0 Why?
i am using
in
and App_Start()
{
MvcHandler.DisableMvcResponseHeader = true;
}
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit Kumar SinghRank #562 · 4.3K reputationPosted Feb 23, 2016, 2:17 AM EST
To remove the MVC header,
In Global.asax, in the Application Start event:
Put this in the web.config get rid of the X-AspNet-Version header: