web.config编译器设置 [英] web.config compiler setting

查看:96
本文介绍了web.config编译器设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS上托管了一个项目.现在它将Aspnet 2.0作为默认框架.我想在运行时通过web.config文件在IIS中设置Aspnet 1.1,不想使用IIS进行设置.
任何人都可以给我示例如何设置它.

I have a project hosted on IIS. Now it is taking Aspnet 2.0 as default framework. I want to set Aspnet 1.1 in IIS by web.config file at runtime, dont want to set it using IIS.
Can any one please give me sample how to set it.

推荐答案

如果您尝试从web.config从2.0更改为1.1,我不确定它会如何设置处理仅在2.0中添加的新类.假设您在基于2.0的项目中具有x.dll或某些命名空间,则将其更改回1.1时将无法编译应用程序.

尝试使用此应用程序切换版本,然后重新部署

http://www.denisbauer.com/NETTools/ASPNETVersionSwitcher.aspx [
if you try to change from 2.0 to 1.1 from web.config,i am not sure how it will handle the new classes added only in 2.0.Say you have x.dll or some namespace reffering in project based on 2.0,then changing back to 1.1 will not let you compile the application.

Try using this application to switch version and then redeploy

http://www.denisbauer.com/NETTools/ASPNETVersionSwitcher.aspx[^]


这篇关于web.config编译器设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆