Last post Apr 06, 2009 02:57 PM by Curt_C
Jun 27, 2008 05:23 PM|fakhre|LINK
how to change the version of .net framework in iis?
can anybody guide me on this..
Jun 27, 2008 05:36 PM|Curt_C|LINK
Right Click on the Site/Virtual Dir. Select PROPERTIES
Select the Asp.Net Tab
Select the .Net version from the dropdown.
Jun 29, 2008 09:16 AM|fakhre|LINK
O Curt thanks for this cool tip.. can you plz explain me how to change the version on iis 7, i m using windows server 2008.
Jun 30, 2008 12:24 PM|Curt_C|LINK
I'd head over to www.iis.net for all your IIS questions/issues. (same login/password as here).
They'll keep you going.
Jul 02, 2008 08:32 AM|Benson Yu - MSFT|LINK
can you plz explain me how to change the version on iis 7, i m using windows server 2008.
In IIS 7.0, the “version” tab is moved to advanced settings of application pool. You can change it by the following steps:
1. Open IIS manager.
2. Click the “Application Pools” node.
3. Find the corresponding application pool that your web site/virtual directory use. By default there is a “DefaultAppPool” application pool.
4. Right click the application pool, and then select “Advanced Settings”.
5. Now we can change the “.NET Framework Version”.
Nov 04, 2008 08:51 PM|SGu|LINK
I have the same requirements, ie, chage the .Net version to 3.5 on my Windows Server 2008/IIS 7 web server. I followed the above steps, however, there are only two options in the dropdown for step 5 above - v2.0 and No managed code. Why dont i see .Net 3.5
as an option? I do have .Net 3.5 installed on the machine.
Nov 05, 2008 12:09 PM|Curt_C|LINK
3.5 still uses 2.0 under the covers, so when you select 2.0 you enable 3.5 as well.
Jan 26, 2009 11:15 AM|daniel_hien|LINK
R u sure 3.5 is runing under 2.0 ? I don't think so. because in my mechine(vista) i installed Framework 1.1 and 2.0 and 3.5.
A friend of mine is IIS 6, can see all of framwork versions in dropdown box. In vista box IIS 7, can see only 2.0 and no manged code
Wt's different ?
Any Idea ?
Jan 26, 2009 12:20 PM|Curt_C|LINK
3.5 is still using the 2.0 clr.
In IIS it will show as 2.0...
Apr 03, 2009 11:23 AM|ulfat|LINK
I have created a website in IIS6.0 using vb.net code.Its default framework sets to 1.1.4322. I want to change this using code. Any help please.I found a code but it did not work for me or I had to change this to work.
public void SetAspNetVersionIIS()
string _FrameWorkVersion = Environment.Version.ToString();
_Dir = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory();
int dirpos = _Dir.Remove(_Dir.Length - 1, 1).LastIndexOf(@"\");
_frameWorkDir = _Dir.Remove(dirpos, _Dir.Length - dirpos);
_frameWorkDir = _frameWorkDir + @"\v" + _FrameWorkVersion + @"\";
Process pro = new Process();
pro.StartInfo.UseShellExecute = false;
pro.StartInfo.RedirectStandardOutput = true;
pro.StartInfo.RedirectStandardError = true;
pro.StartInfo.FileName = _Dir + "aspnet_regiis";
pro.StartInfo.Arguments = @"-s " + @"/W3SVC/1/Root/" + _strServerName;
catch (Exception frm)
Change ASP.NEt version of a website in IIS using vb.net code
Apr 03, 2009 01:21 PM|Curt_C|LINK
you cant change it in code... you need to set this in IIS. It needs to be set before you process code.
Apr 06, 2009 06:40 AM|ulfat|LINK
Thanks for your reply. You have said " It needs to be set before you process code.".Please explain in some detail regaridng this sentence. I was unable to comprehend this.
Also my scenario is that i will be creating many sites in IIS using code.User select a zip file containing his website and selects from a radiobuttonlist the framework for his project zip. I extract that package and upload on server harddisk. Then I create
a new site in IIS using code and its physical path points to this extracted zip file present on Server harddisk. Other properties for the website are also set using code.My last stpe would be to change the framework of only this site to 1.1,2.0 or 3.5 according
to the value selected by user using radiobuttonlist. Is there a way to do this so that other sites are not affected.
Waiting for your reply.
how to change the version of .net framework in iis
Apr 06, 2009 02:57 PM|Curt_C|LINK
IIS interprets the calls BEFORE the site...that's what I meant.
As for the different sites... you can set the individual sites versions in IIS, they dont have to all be set the same. Each site is independent so your concern isn't really one to worry about.