Win2003 64-bit system IIS configuration method _win Server

Source: Internet
Author: User
Tags goto
1, as a result of the use of template installation asp.net 2.0 need to uninstall 64-bit first. net2.0
Command: C:\windows\microsoft.net\framework64\v2.0.50727\aspnet_regiis.exe–u
2, switch IIS to 32Bit mode operation
Command: Cscript C:\inetpub\adminscripts\adsutil.vbs SET W3svc/apppools/enable32bitapponwin64 1
3, reinstall installation 32Bit. NET 2.0
Command: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe-r
4, install 64-bit system operating under the 32Bit asp.net 1.1
5, use the command to modify the default IIS support asp.net version is: asp.net 1.1
Command: C:\windows\microsoft.net\framework\v1.1.4322\aspnet_regiis.exe–r
Batch process:
Copy Code code as follows:

@echo off
echo Uninstall 64Bit asp.net 2.0
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe-u
echo Switches IIS to 32Bit run mode
Cscript C:\inetpub\adminscripts\adsutil.vbs SET W3svc/apppools/enable32bitapponwin64 1
echo Repair asp.net2.0
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe-r
echo Installation asp.net1.1
FRAMEWORKS\FRAMEWORK_1.1.EXE/C/t:c:\windows\temp\
C:\windows\temp\netfx.msi/passive
echo Toggle asp.net to v1.1.4322
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe-r
@pause

Echo Installation asp.net1.1
FRAMEWORKS\FRAMEWORK_1.1.EXE/C/t:c:\windows\temp\
C:\windows\temp\netfx.msi/passive
Description: Red for the automatic installation of the ASP.net 1.1 installation files in and blighted processing files in the same directory frameworks folder, the file name is: Framework_1.1.exe. If the batch file is in C:\test\, the folder is established under C:\test\: Frameworks, and the asp.net1.1 that runs under the 64-bit system is copied to this directory and renamed to: Framework_1.1.exe.
asp.net version Replacement method
1. Change the asp.net version of all sites under current IIS and the ASP.net version number of the default new site.
asp.net 1.1:c:\windows\microsoft.net\framework\v1.1.4322\aspnet_regiis.exe–r
asp.net 2.0:c:\windows\microsoft.net\framework\v2.0.50727\aspnet_regiis.exe-r
2. Change a asp.net version of a site individually
asp.net 1.1:c:\windows\microsoft.net\framework\v1.1.4322\aspnet_regiis.exe-s W3SVC/%vp%/ROOT/
asp.net 2.0:c:\windows\microsoft.net\framework\v2.0.50727\aspnet_regiis.exe-s W3SVC/%vp%/ROOT/

Description:%vp% in red is the identification number of the site. You can see it in IIS.
Batch handler:
Copy Code code as follows:

@echo off
set/p vp= "Please enter the site identifier you want to modify:"
Echo 1, asp.net 1.1
echo 2, asp.net 2.0
Echo 3, exit
set/p aspnetver= "Please select asp.net version:"
If%aspnetver% = 1 goto One
if%aspnetver% = = 2 Goto Two
if%aspnetver% = = 3 Goto end
: one
%systemroot%\microsoft.net\framework\v1.1.4322\aspnet_regiis.exe-s w3svc/%vp%/root/
Goto END
: Two
%systemroot%\microsoft.net\framework\v2.0.50727\aspnet_regiis.exe-s w3svc/%vp%/root/
Goto END
: End
Echo End
@pause

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.