首页 > 代码库 > 没有为扩展名“.cshtml”注册的生成提供程序。

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

webconfig中配置

<compilation debug="true" targetFramework="4.0">       
<buildProviders>         
<add extension=".cshtml" type="System.Web.Compilation.PageBuildProvider"/>       
</buildProviders>      
</compilation>

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