解决方法:
一。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
脚本引擎选择上。
查看更多关于ASP.NET 运行时错误: 没有为扩展名“.asax”注册的生成提供程序修正版的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did36152