In the iis6.0 of windows2003, it was loaded. After NETFRAMEWORK1.1, and. NETFRAMEWORK2.0, in the newly created ASP.net application, the ASP.net tab appears, where you can change the framework on which the Web application is running.
But recently, after installing 64-bit Windows XP Professional, this tab cannot be found and can only be modified as follows:
In IIS Manager, select the specified Web application, right-click--> property-->configuration-->mapping--> Modify mappings as needed
However, this method is too cumbersome to be modified in batches and can be easily implemented by using the following batch command:
Copy Code code 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 up, also remember to modify the application pool, based on different versions of the framework of the program, you can not use the same application pool!!!