码迷,mamicode.com
首页 > Web开发 > 详细

asp.net运行时错误:没有为扩展名".cshtml"注册的提供程序。

时间:2015-04-20 12:57:30      阅读:109      评论:0      收藏:0      [点我收藏+]

标签:

解决方法:

一.

 在machine.config或web.config中的<compilation><buildProviders>节注册一个。请确保所注册的提供程序具有包含值“web“或”all“的BuildProviderAppliesToAttribute特性
 在machine.config或web.config中修改原来的<compilation>

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

 

asp.net运行时错误:没有为扩展名".cshtml"注册的提供程序。

标签:

原文地址:http://www.cnblogs.com/aiai-An/p/4441120.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!