运行 .NET 2.0 和 3.5 IIS 7 中的网站
我听说有一个问题或者必须以某种方式设置 IIS 才能同时运行 .NET 2.0 和 .NET 3.5 站点?
配置站点框架时,我们在下拉列表中没有看到 .NET 3.5 选项。
I heard there is a problem or a certain way you must setup IIS in order to run both .NET 2.0 and .NET 3.5 sites concurrently?
We don't see a .NET 3.5 option in the dropdown when configuring the site framework.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您想阅读对此的详细说明,请查看 如何将 IIS 应用程序或 AppPool 设置为使用 ASP.NET 3.5 而不是 2.0,作者:Scott Hanselman。
If you want to read a longer explanation of this, check out How to set an IIS Application or AppPool to use ASP.NET 3.5 rather than 2.0 by Scott Hanselman.
CLR 有两个版本,实际上运行 .NET 代码:1.1 和 2.0(新版本仍处于测试阶段)。
框架,大家都用的基类库,更新的比较规律。 我们现在已经达到 3.5 sp1。
编译器也增加了一点复杂性...当 3.0 发布时,C# 编译器进行了一些更新,为该语言添加了 lambda、自动属性和其他功能...
因此,当您考虑运行代码时,请考虑CLR 版本的条款。 当您考虑开发代码时,请考虑您希望针对的 BCL 版本。 编译器版本与 IDE 相关,因此您可能永远不必考虑这一点。
There are two versions of the CLR, which actually runs .NET code: 1.1 and 2.0 (with a new version still in beta).
The framework, the base class libraries that everyone uses, are updated more regularly. We're up to 3.5 sp1 now.
Compilers add a little more complexity as well... When 3.0 came out there were some updates to the C# compiler that added lambdas, automatic properties and other candy to the language...
So when you're looking at running code, think in terms of CLR versions. When you're looking at developing code, think of the version of the BCL you wish to target. Compiler versions are tied to the IDE, so you'll probably never have to think about that.
如果它设置为运行 .NET 2.0,它将运行 .NET 3.5。 .NET 3.5 没有单独的设置。
If it's set to run .NET 2.0, it will run .NET 3.5. There is no separate setting for .NET 3.5.
.Net 3.5只是.Net 2.0的扩展。 选择 .Net 2.0(并确保服务器上安装了 3.5。)
.Net 3.5 网站将在 IIS 上的 .Net 2.0 设置下运行。
我家里用的是IIS7,没问题。
.Net 3.5 is just an extension of .Net 2.0. Choose .Net 2.0 (and make sure you have 3.5 installed on the server.)
.Net 3.5 Websites will run under the .Net 2.0 setting on IIS.
I use IIS7 at home, and I have no problem.