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