ASP. NET application solution to server application unavailable problem

Source: Internet
Author: User

The company server has. The application of NET2 is running while I am using it. NET4 platform development, native Test no problem, throw server found either my new platform does not do, or. NET2 's old platform does not help, and various restart IIS services and WWW services are useless

When I realized it was the two-platform conflict, I recalled that I didn't use any of the components and features that involved the conflict, so I guess it might be. Version conflict issues for NET2 and. NET4

The error prompt displays:

Server Application Unavailable

The Web application attempting to access on this Web server is currently unavailable. Click 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 is found in the application Event log of the Web server. Please review this log entry to discover what caused this error to occur.

Search on the internet found, because I put. NET2 and. NET4 applications are placed in the default application pool DefaultAppPool caused by

By default, when you create a new virtual directory in the default Web site of IIS settings, the app is automatically assigned to the default application pool DefaultAppPool, and different versions of the. NET causes conflicts, therefore, to avoid conflicts with new application pools for different versions of the application individually, such as:

I built two pools here, respectively, to make AppPoolforDotNet2 and AppPoolforDotNet4.

Then specify the application pool in the application,

Once set, you can see the app in the application pool,

In this way, the version conflict problem will no longer occur, by solving the problem I also learned new knowledge, hope also help the needs of friends to progress together

ASP. NET application solution to server application unavailable problem

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.