ASP.NET 运行时错误: 没有为扩展名“.asax”注册的生成提供程序修正版

ASP.NET 运行时错误: 没有为扩展名“.asax”注册的生成提供程序。可以在 machine.config 或 web.config 中的 <compilation><buildProviders> 节注册一个。

请确保所注册的提供程序具有包含值“Web”或“All”的BuildProviderAppliesToAttribute 属性。 
解决方法:  
一。web.config 中 
修改 
<compilation debug="true"> 
<buildProviders> 
<add extension=".asax" type="System.Web.Compilation.PageBuildProvider"/> 
</buildProviders> 
</compilation> 
二。 
IIS中需要点击相应站点的属性 -》主目录 -》配置 —》映射-》添加 
可执行文件:c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll 
扩展名:.asax 
动作: 限制-》GET,HEAD,POST,DEBUG 
脚本引擎选择上。

posted @ 2018-12-05 21:18  ac楚  Views(299)  Comments(0Edit  收藏  举报