Click here to Skip to main content
15,885,856 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
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.
Posted
Updated 10-Jan-11 0:06am
v3
Comments
Sandesh M Patil 10-Jan-11 6:00am    
Edited for better readability

1 solution

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[^]
 
Share this answer
 
Comments
Sandeep Mewara 10-Jan-11 6:42am    
Good answer.
Anupama Roy 10-Jan-11 6:44am    
Thank you Sandeep!
Sandesh M Patil 10-Jan-11 7:53am    
Nice answer
Anupama Roy 10-Jan-11 8:40am    
Thank you SChristmas!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900