解决方法: 将Views中的Web.config 复制到新的视图模版文件夹下(这里放到 templates下),就可以了 如果还不行,可以在每个视图上面添加如下代码: @inherits System.Web.Mvc.WebViewPage