| Login

Search this Blog


Links I like to keep around




Here are the most recent postings to this blog. Use the archive calendar or search to find other entries.
Jun6

Written by:R Teachout
6/6/2008 2:15 PM

I've been working this a bunch, but I have a number of sites on the same server, some running 1.1 and some 2.0, but all new sites were automatically flagged as 1.1.. and I'd prefer 2.0, so I had a development box setup to figure this out..  Now I know how can I change the default asp.net version in IIS6 on the "Web Sites Folder" ONLY without affecting the existing sites running 1.1!


I Ran the following:
%systemroot%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -lk
Which shows you what version of asp.net is running on each site, for our information.. kept this on the screen in case of an oops later.. so I could manually fix any 1.1 sites if I had to.. THIS IS JUST A PRECAUTION.. But it should result in something like:

W3SVC/  1.1.4322.2407
W3SVC/1/ROOT/   2.0.50727.0
W3SVC/11/ROOT/  1.1.4322.2407
W3SVC/12/ROOT/  2.0.50727.0
W3SVC/15/ROOT/  1.1.4322.2407
W3SVC/16/ROOT/  2.0.50727.0
...

Here's how I fixed it..

Ran the following to change the version on the "Web Sites Folder.. ONLY"
%systemroot%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -sn W3SVC/
(-sn means change script map, non-recursively, only the the following path.. NOTE the / after W3SVC/ is important!)
That way, new sites setup on the server, will now be setup as 2.0, not 1.1

Now, when I re-run the first command, I get:
W3SVC/  2.0.50727.0
W3SVC/1/ROOT/   2.0.50727.0
W3SVC/11/ROOT/  1.1.4322.2407
W3SVC/12/ROOT/  2.0.50727.0
W3SVC/15/ROOT/  1.1.4322.2407
W3SVC/16/ROOT/  2.0.50727.0
...
which was exactly what I wanted.

:)

Tags:


-QuoteDB.com

Inspired by Nina