Tim Huffam

Dotting the I and crossing the T of I.T.

  Home  |   Contact  |   Syndication    |   Login
  129 Posts | 0 Stories | 874 Comments | 677 Trackbacks

News

Archives

Post Categories

Interesting Blogs/Links

In some cases you may want or need to change the version of .NET that a particular web application directory uses.  Normally this is done via the ASP.NET tab on the IIS properties page for the web app, however it can also be done manually at the command line...

  1. CD into the dir containing the version of .NET that you require eg: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
  2. Run aspnet_regiis.exe specifying the name of the dir you want this set against.
    eg aspnet_regiis.exe -s W3SVC/nnn/ROOT/xxx (where nnn is the web site identifier and xxx is the dir name) 
      eg aspnet_regiis.exe -s W3SVC/1/ROOT/MySampleApp

It's that simple.

posted on Friday, August 04, 2006 12:24 PM

Feedback

# re: Manually configure a web app dir for a specific version of the .NET framework 11/3/2006 8:39 AM Tim
To list all the paths within the IIS metabase and which versions of ASP.NET are registered against them use the following command:
aspnet_regiis.exe -lk

Note that paths that inherit from parent paths/nodes are not shown.

Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: 
Please add 7 and 4 and type the answer here: