1,在每个视图上面添加 @inherits System.Web.Mvc.WebViewPage 2,将views中的web.config COPY到新的视图模版文件夹下,就可以了 转载于:https://www.cnblogs.com/Vennet/p/3955468.html