默认的HTTP头IIS 7中的'MvcHandler'在当前上下文中不存在。
默认的HTTP头IIS 7中的'MvcHandler'在当前上下文中不存在。
这是我的Global.asax中的代码:
<%@ Application Language="C#" %>
我还使用了以下代码:
protected void Application_Start() { MvcHandler.DisableMvcResponseHeader = true; }
但是我收到了以下错误信息:
The name 'MvcHandler' does not exist in the current context
在我的Web.config中,我使用了以下代码:
如何移除MVC默认的HTTP头?
我无法移除HTTP头,而且在这一行中收到了一个错误:The name 'MvcHandler' does not exist in the current context。