:::: MENU ::::

Wednesday, May 9, 2012

Server: Windows 2003 bit IIS6

Steps I had to take are as follows:

Install framework 4.0 on the computer (this was already done a while back)
within IIS, go to "web service extensions" and ensure that .NET 4.0
has been added and is allowed (not prohibited)
used plesk to move the site in question into its own application pool.
This is important apparently as it can confuse IIS if you try to have
websites targeting different framework version in the same application
pool
instead of manually changing the mappings as in the post above I then
went to this article and followed it
http://weblogs.asp.net/owscott/archive/2006/05/30/ASPNet_5F00_regiis.exe-tool_2C00_-setting-the-default-version-without-forcing-an-upgrade-on-all-sites.aspx


What that article told me in broad terms was:

Use this trick to find out the SiteID of the site(s) you want to
upgrade:http://weblogs.asp.net/owscott/archive/2005/07/29/421058.aspx
Run the following command prompt commands (assuming you know how to
use cmd prompt):

Click start | run | type cmd | press enter
type cd C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319
use the aspnet_regiis tool by typing: aspnet_regiis -sn
W3SCV/{SITEID}/ROOT replacing {SITEID} with the number you got from
the article above.
In my case the cmd looked like:
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -SN W3SVC/3868/ROOT
Start registering ASP.NET (4.0.30319) at W3SVC/3868/ROOT.
Finished registering ASP.NET (4.0.30319) at W3SVC/3868/ROOT.
You can then use aspnet_regiis -lk to list all the sites and which
versions they are configured to, which now shows my site is configured
to asp.net 4

The first article is aimed at showing you how to set the defaults for
sites on your server from here on out so my steps above are a slight
variation as I only wanted to set two specific sites to use asp.net 4
and the rest to continue defaulting to asp.net 2.0.