在2.0下运行ASP.NET 1.1应用程序

时间:2022-02-13 15:24:45

I have an application written in ASP.NET 1.1. If I switch IIS to use 2.0 what issues am I likely to see? Initial tests have thrown no problems, but I was wondering if anyone had experience of running ASP.NET 1.1 applications under 2.0 and could maybe point out some areas to watch out for?

我有一个用ASP.NET 1.1编写的应用程序。如果我切换IIS使用2.0我可能会看到哪些问题?初步测试没有任何问题,但我想知道是否有人有在2.0下运行ASP.NET 1.1应用程序的经验,并且可能指出一些需要注意的方面?

Thanks for any advice.

谢谢你的建议。

5 个解决方案

#1


Just make sure that you are not running different web applications in the same application pool if they require different versions of the .NET framework.

如果需要不同版本的.NET框架,请确保您不在同一应用程序池中运行不同的Web应用程序。

Create separate app pools (at least one for each version of the framework).

创建单独的应用程序池(每个版本的框架至少有一个)。

Maybe also have a look at this blog post by Brad Abrams about breaking changes between .NET framework 1.1 and 2.0. Here's a short quote :

也许还可以看看Brad Abrams关于.NET框架1.1和2.0之间的变化的博客文章。这是一个简短的引用:

...we work very hard to ensure that your V1.1 apps will this just work on 2.0, but none-the-less, this doc is likely worth a quick scan as you migrate to 2.0

...我们非常努力地确保您的V1.1应用程序只能在2.0上运行,但是,当您迁移到2.0时,此文档可能值得快速扫描

#2


When we migrated our 1.1 applications to 2.0, I don't think we had any problems. There were a handful of cases where the compiler warned us that we should use a different (updated) assembly, but other than that everything was fine.

当我们将1.1应用程序迁移到2.0时,我认为我们没有任何问题。有一些案例,编译器警告我们应该使用不同的(更新的)程序集,但除此之外一切都很好。

#3


Most ASP.NET 1.1 applications will run just fine under ASP.NET 2.0. One thing to watch though is that you don't run an ASP.NET 1.1 and an ASP.NET 2.0 application in the same application pool.

大多数ASP.NET 1.1应用程序在ASP.NET 2.0下运行得很好。但要注意的一件事是,您不在同一应用程序池中运行ASP.NET 1.1和ASP.NET 2.0应用程序。

#4


The biggest problem we had was connected with the insertion of the xhtmlConformance element in the web.config file connected with javascript libraries, removing it worked fine for us check this post from Scott Gu.

我们遇到的最大问题是在与javascript库连接的web.config文件中插入xhtmlConformance元素,删除它对我们来说工作正常,请查看Scott Gu的这篇文章。

#5


Usually asp.net 1.1 application migration to 2.0 does not raise any issues. You might need to change the location where you put the class files.

通常asp.net 1.1应用程序迁移到2.0不会引起任何问题。您可能需要更改放置类文件的位置。

You will see some warnings, some deprecated method call etc.

你会看到一些警告,一些不赞成的方法调用等。

#1


Just make sure that you are not running different web applications in the same application pool if they require different versions of the .NET framework.

如果需要不同版本的.NET框架,请确保您不在同一应用程序池中运行不同的Web应用程序。

Create separate app pools (at least one for each version of the framework).

创建单独的应用程序池(每个版本的框架至少有一个)。

Maybe also have a look at this blog post by Brad Abrams about breaking changes between .NET framework 1.1 and 2.0. Here's a short quote :

也许还可以看看Brad Abrams关于.NET框架1.1和2.0之间的变化的博客文章。这是一个简短的引用:

...we work very hard to ensure that your V1.1 apps will this just work on 2.0, but none-the-less, this doc is likely worth a quick scan as you migrate to 2.0

...我们非常努力地确保您的V1.1应用程序只能在2.0上运行,但是,当您迁移到2.0时,此文档可能值得快速扫描

#2


When we migrated our 1.1 applications to 2.0, I don't think we had any problems. There were a handful of cases where the compiler warned us that we should use a different (updated) assembly, but other than that everything was fine.

当我们将1.1应用程序迁移到2.0时,我认为我们没有任何问题。有一些案例,编译器警告我们应该使用不同的(更新的)程序集,但除此之外一切都很好。

#3


Most ASP.NET 1.1 applications will run just fine under ASP.NET 2.0. One thing to watch though is that you don't run an ASP.NET 1.1 and an ASP.NET 2.0 application in the same application pool.

大多数ASP.NET 1.1应用程序在ASP.NET 2.0下运行得很好。但要注意的一件事是,您不在同一应用程序池中运行ASP.NET 1.1和ASP.NET 2.0应用程序。

#4


The biggest problem we had was connected with the insertion of the xhtmlConformance element in the web.config file connected with javascript libraries, removing it worked fine for us check this post from Scott Gu.

我们遇到的最大问题是在与javascript库连接的web.config文件中插入xhtmlConformance元素,删除它对我们来说工作正常,请查看Scott Gu的这篇文章。

#5


Usually asp.net 1.1 application migration to 2.0 does not raise any issues. You might need to change the location where you put the class files.

通常asp.net 1.1应用程序迁移到2.0不会引起任何问题。您可能需要更改放置类文件的位置。

You will see some warnings, some deprecated method call etc.

你会看到一些警告,一些不赞成的方法调用等。