在IIS6安装ASP.NET 4.0旁边ASP.NET 2.0 [英] Install ASP.NET 4.0 alongside ASP.NET 2.0 on IIS6

查看:264
本文介绍了在IIS6安装ASP.NET 4.0旁边ASP.NET 2.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过,你创建一个新的应用程序池,一个用于2.0站点和一个4.0网站。但没有选择我看到创建池配置框架时。

I've read where you create a new application pool, one for 2.0 sites and one for 4.0 sites. But there is no option I see when creating a pool to configure the framework.

我的问题是我已经运行作为默认Web站点数​​2.0网站。我一个新的虚拟目录下添加一个WCF 4.0服务和框架设置为4.0。我也把它放在一个单独的应用程序池。

My problem is I have several 2.0 sites running as the Default Web Site. I added a WCF 4.0 service under a new virtual directory and set the framework to 4.0. I also put it in a separate app pool.

现在,我只能在同一时间得到一个工作。无论是2.0网站或4.0站点。我得到:

Now, I can only get one working at a time. Either the 2.0 sites or the 4.0 site. I get:

这是不可能运行两个
  在不同版本的ASP.NET
  同样的IIS进程。请使用IIS
  管理工具重新配置
  你的服务器来运行应用程序
  一个单独的进程。

It is not possible to run two different versions of ASP.NET in the same IIS process. Please use the IIS Administration Tool to reconfigure your server to run the application in a separate process.

是否有可能做到这一点在IIS6和Windows Server 2003?

Is it possible to do this under IIS6 and Windows Server 2003?

推荐答案

要澄清:每一个应用程序池结合使用它,在应用程序启动顺序的第一个网站的.NET框架。首先网站将运行良好,但所有其他网站将被限制在同一个应用程序池。你需要每framework版本,至少有一个应用程序池;在我的经验中,最强大的设置是每个应用程序一个应用程序池 - 这种方式,你可以切换framework版本,而不必担心其他应用程序,并在需要时可以通过击杀任务管理器单独的应用程序

To clarify: Each app pool binds to the .NET framework of the first web site that uses it, in order of application startup. That first site will run fine, but all other sites will be restricted to the same app pool. You need at least one app pool per framework version; and in my experience, the most robust setup is one app pool per application - this way, you can switch framework versions without worrying about other applications, and you can kill individual applications through task manager when the need arises.

这篇关于在IIS6安装ASP.NET 4.0旁边ASP.NET 2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆