Geeks With Blogs

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

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 4, 2006 12:24 PM C# .NET , ASP.NET , IIS , ASP.NET AJAX | Back to top


Comments on this post: Manually configure a web app dir for a specific version of the .NET framework

# re: Manually configure a web app dir for a specific version of the .NET framework
Requesting Gravatar...
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.
Left by Tim on Nov 03, 2006 8:39 AM

Your comment:
 (will show your gravatar)


Copyright © Tim Huffam | Powered by: GeeksWithBlogs.net