How to change the ASP. NET program version in IIS

Source: Internet
Author: User

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 !!!

Related Article

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.