Iis asp. NET 1.1 and 2.0 coexist

Source: Internet
Author: User

Be careful when installing and running. NET 1.1 and. NET 2.0 on the same computer!

Does your project occasionally encounter server application unavailable errors? Or this error is reported continuously!

Today, I helped a teacher upgrade a web psychological evaluation system. the system was originally ASP. NET 1.1, the new version is ASP. NET 2.0 .. (PS: other ASP files are installed on the server. netProgram, Using ASP. net1.1 .)

1. Create a directory on the server and copy the files of all published web programs to the new directory.
2. Create a new virtual directory on the server's IIS and configure it as an application that can execute scripts (the process is the same as that of creating a. NET Framework 1.1 program .) Then, configure the. NET Framework of this virtual directory to 2.0.
After success, the following error occurs when you access the configured program:

Server application unavailable
The Web application you are attempting to access on this web server is currently unavailable. Please hit the "refresh" button in your web browser to retry your request.

Administrator Note: an error message detailing the cause of this specific request failure can be found in the application event log of the Web server. please review this log entry to discover what caused this error to occur.

After carefully reading the IIS Help documentation, I found that this error was caused by the IIS6 application isolation mechanism. The default application isolation mechanism of IIS is called "Working Process Isolation Mode". In this mode, an application is divided into multiple groups, each of which is an "Application pool ", each application pool is isolated from each other. The benefits of isolation are security, stability, and so on. Each application pool in IIS is managed by a "worker process", that is, "w3wp.exe ". If you run multiple applications in the application pool, we can see multiple w3wp.exe. The created virtual directories are directed to the "ultultapppool" in iis6.

The cause of the above error is :.. NET Framework 2.0 program and. net framework1.1 (or 1.0) programs are put into the same application pool (ultapppool pool by default), that is, managed by the same worker process: w3wp.exe, however, a single working process cannot manage different programs (or different versions of programs) at the same time. If you first access. net Framework 1.1 page, the worker first loads and manages the assembly of Version 1.1. net Framework 2.0 web application page, the server application unavailable error is returned. In contrast, if w3wp.exe in the development application pool has accessed the 2.0 web application before it is started (the application assembly has been loaded at this time. net Framework 1.1 web assembly). When you access the Web application page of 1.0 or, a Chinese prompt such as "server application unavailable" will also appear. (You can use w3wp.exe to test .)

Solution: Create an application pool named "ASP. net2.0 ", select the virtual directory of the system, click" properties "-", select the application pool you just created in "application pool", and click "OK ".

 

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/zfh198601/archive/2009/06/10/4256556.aspx

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.