在一个网络服务器管理多个.Net的框架多个、框架、服务器管理、网络

2023-09-06 09:18:05 作者:咕噜噜oοО

所以,我负责部署我的项目的生产服务器的其他一些ASP.NET,网站还设立。

So I'm in charge to deploy my project on the productive server where some other ASP.NET-Websites are also set up.

现在的问题是,我写我的整个项目.NET 3.5下,但在Web服务器上当前安装的.NET 1.1的一些其他项目的要求他们(不要问我为什么,我想不出它无论是从,但我的PM是这样说的......),因此我不能安装3.5,但现在我一点也不在1.1重写我的项目的心情。

The problem now is that I wrote my whole project under .NET 3.5 but on the webserver the current installation is .NET 1.1 as some of the other projects require them (don't ask me why, I can't figure it out either but my PM says so...) and thus I'm not allowed installing 3.5 for now but I'm not at all in the mood of rewriting my project on 1.1.

现在,它是可能的(如果是,如何)来管理.NET的多个安装,排序,所以指定使用哪个版本的项目? (大写:项目X使用.NET 1.1,项目ÿ使用3.5)或有可能崩溃的一个项目或其他当我安装3.5有可能发生的冲突。

Now; is it possible (and if yes, how) to manage multiple installations of .NET, so sort of assigning the projects which version to use? (Say: Project X use .NET 1.1, Project Y use 3.5) or are there possible conflicts that could crash one or another of the projects when I install 3.5?

推荐答案

不同.NET framework版本可以为每个虚拟目录在IIS中被分配(前提是这两个虚拟目录被分配到的不同的应用程序池)。所以,如果你有两个虚拟目录在Web服务器上说程序App1 App2的您可以指定 APP1 使用.NET 1.1和 App2的使用.NET 3.5以上precisely ASP.NET 2.0。对于这个工作,你需要在服务器上安装.NET 3.5。

Different .NET framework versions can be assigned per virtual directory in IIS (provided that these two virtual directories are assigned to different application pools). So if you have two virtual directories in your web server say App1 and App2 you can assign App1 to use .NET 1.1 and App2 to use .NET 3.5 or more precisely ASP.NET 2.0. For this to work you need to install .NET 3.5 on the server.