在同一网站上运行asp.net 2.0和1.1 ...在一个区域工作,但崩溃另一个区域

时间:2022-09-03 21:38:59

Our site is running ASP.NET 1.1, and I need to have ASP.NET 2.0 running in a separate section to the same site until we get it fully converted over. I created the new folder and in IIS, I ‘create application’ process on the folder. Then, I went to the ASP.NET tab and changed the version for my new app to 2.0. This works fine on my local computer and works fine for the admin folder that achieves the same task which a co-worker created, but for this folder, it made the .NET 1.1 parts of the site crash giving the following error message (below). I ‘removed application’ on my new folder and it fixed the error.

我们的站点运行的是ASP.NET 1.1,我需要让ASP.NET 2.0在一个单独的部分中运行到同一站点,直到我们完全转换它为止。我创建了新文件夹,在IIS中,我在文件夹上创建了“应用程序”进程。然后,我转到ASP.NET选项卡并将我的新应用程序的版本更改为2.0。这在我的本地计算机上工作正常,并且可以很好地用于管理文件夹,该文件夹实现了同事创建的相同任务,但对于此文件夹,它使.NET 1.1部分网站崩溃,并给出以下错误消息(如下) 。我在我的新文件夹上删除了“应用程序”并修复了错误。

=====================================
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. 
=====================================

2 个解决方案

#1


Your problem is with the application pools you are adding your applications to. .NET 1.1 and .NET 2.0 can not run side by side in the same AppPool. (They certainly can't run in the same folder or virtual directory).

您的问题在于您要将应用程序添加到的应用程序池。 .NET 1.1和.NET 2.0不能在同一个AppPool中并行运行。 (他们当然不能在同一个文件夹或虚拟目录中运行)。

The easiest way to handle this is to create an AppPool called .NET 1.1 and one called .NET 2.0.

处理此问题的最简单方法是创建一个名为.NET 1.1的AppPool和一个名为.NET 2.0的AppPool。

When you run 'create application', make sure you select the correct AppPool for the .NET version the application uses.

运行“创建应用程序”时,请确保为应用程序使用的.NET版本选择正确的AppPool。

That should take care of any errors when you run your application.

这应该在您运行应用程序时处理任何错误。

#2


You can't run two different versions of ASP.NET in the same application pool. You will need two separate application pools and two separate websites to serve up ASP.NET 1.1 and ASP.NET 2.0 from the same IIS installation.

您无法在同一应用程序池中运行两个不同版本的ASP.NET。您将需要两个单独的应用程序池和两个单独的网站,以便从同一IIS安装中提供ASP.NET 1.1和ASP.NET 2.0。

#1


Your problem is with the application pools you are adding your applications to. .NET 1.1 and .NET 2.0 can not run side by side in the same AppPool. (They certainly can't run in the same folder or virtual directory).

您的问题在于您要将应用程序添加到的应用程序池。 .NET 1.1和.NET 2.0不能在同一个AppPool中并行运行。 (他们当然不能在同一个文件夹或虚拟目录中运行)。

The easiest way to handle this is to create an AppPool called .NET 1.1 and one called .NET 2.0.

处理此问题的最简单方法是创建一个名为.NET 1.1的AppPool和一个名为.NET 2.0的AppPool。

When you run 'create application', make sure you select the correct AppPool for the .NET version the application uses.

运行“创建应用程序”时,请确保为应用程序使用的.NET版本选择正确的AppPool。

That should take care of any errors when you run your application.

这应该在您运行应用程序时处理任何错误。

#2


You can't run two different versions of ASP.NET in the same application pool. You will need two separate application pools and two separate websites to serve up ASP.NET 1.1 and ASP.NET 2.0 from the same IIS installation.

您无法在同一应用程序池中运行两个不同版本的ASP.NET。您将需要两个单独的应用程序池和两个单独的网站,以便从同一IIS安装中提供ASP.NET 1.1和ASP.NET 2.0。