In iis6.0 of Windows2003, after installing. netframework1.1 and. netframework2.0, the newly created ASP. NET application Program View Properties, ASP. NET tab appears, where you can change the framework on which the web application runs.
However, after 64-bit Windows XP Professional is installed recently, this tab cannot be found and can only be modified as follows:
In the IIS manager, right-click the specified web application and choose --> properties --> Configuration --> Mapping --> modify the ing as needed.
However, this method is too troublesome to be modified in batches. You can use the following batch processing command to easily specify the framework:
CopyCode The Code is as follows: @ echo off
Set/P Vp = "Please input the virtual path :"
Choice/c otc/M "Press o for ASP. net1.1, press t for ASP. net2.0, press C for cancel"
If errorlevel 3 goto end
If errorlevel 2 goto two
If errorlevel 1 goto one
: One
%Systemroot=microsoft.netframeworkv1.1.4322aspnet_regiis.exe-s w3svc/1/root/% VP %
Goto end
: Two
%Systemroot=microsoft.netframeworkv2.0.50727aspnet_regiis.exe-s w3svc/1/root/% VP %
Goto end
: End
Echo end
Pause
After setting, remember to modify the application pool. Applications based on different versions of the framework cannot use the same application pool !!!