没有为扩展名“.cshtml”注册的生成提供程序。

webconfig中配置

<compilation debug="true" targetFramework="4.0">       
<buildProviders>         
<add extension=".cshtml" type="System.Web.Compilation.PageBuildProvider"/>       
</buildProviders>      
</compilation>
posted @ 2014-12-04 09:20  MartyZane  阅读(3186)  评论(0编辑  收藏  举报