IIS 7 中的应用程序池不显示 .NET Framework 3.5
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1022179/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Application pool in IIS 7 does not show .NET Framework 3.5
提问by Abdulsattar Mohammed
I've .NET Framework 3.5 SP1 installed on my system. When I create a new application pool, I just see the .NET Framework V2.0.xxx. I've a file that uses the ASP.NET MVC. It's not loading. I think this might be the reason.
我的系统上安装了 .NET Framework 3.5 SP1。当我创建一个新的应用程序池时,我只看到 .NET Framework V2.0.xxx。我有一个使用 ASP.NET MVC 的文件。它没有加载。我想这可能是原因。
回答by danswain
I think rather confusingly it's referring to the .Net Runtime version, which for .Net 3.5 framework is still Runtime version 2.0.
我认为相当令人困惑的是它指的是 .Net Runtime 版本,对于 .Net 3.5 框架来说,它仍然是 Runtime 2.0 版。
You can google for explanations for this but it's along the lines of.
您可以谷歌搜索对此的解释,但大致如此。
- .Net 2.0 Framework -- .Net 2.0 Runtime
- .Net 3.0 Framework -- .Net 2.0 Runtime
- .Net 3.5 Framework -- .Net 2.0 Runtime
- .Net 3.5 Sp1 -- .Net 2.0 Runtime
- .Net 4.0 Framework -- .Net 4.0 Runtime
- .Net 2.0 框架——.Net 2.0 运行时
- .Net 3.0 框架——.Net 2.0 运行时
- .Net 3.5 框架——.Net 2.0 运行时
- .Net 3.5 Sp1 -- .Net 2.0 运行时
- .Net 4.0 框架——.Net 4.0 运行时
I've noticed that MVC sometimes has problems if it's not run using the "Integrated" Managed Pipeline Mode, so might want to try that.
我注意到如果 MVC 不使用“集成”托管管道模式运行,它有时会出现问题,因此可能想尝试一下。
回答by eu-ge-ne
回答by Stuart
Not sure what exactly the question is, if you expecting framework 3.5 in IIS don't. The two frameworks in IIS are 1.1 and 2.0. So framework 3.5 will still only show 2.0 in IIS
不确定问题究竟是什么,如果您不希望 IIS 中的框架 3.5。IIS 中的两个框架是 1.1 和 2.0。所以框架 3.5 仍然只会在 IIS 中显示 2.0
回答by Dan
As was explained earlier, .NET 3.0 and 3.5 built on top of .NET 2.0, so there was no need for those choices. Now that .NET 4.0 is out, it does include an entry for ASP.NET 4.0 as it includes a new runtime.
如前所述,.NET 3.0 和 3.5 构建在 .NET 2.0 之上,因此不需要这些选择。现在 .NET 4.0 已经发布,它确实包含一个 ASP.NET 4.0 条目,因为它包含一个新的运行时。
As such, your possible choices now include: 1.1.4322 (.NET 1.1) 2.0.50727 (.NET 2.0, 3.0, 3.5) 4.0.30319 (.NET 4.0)
因此,您现在可能的选择包括: 1.1.4322 (.NET 1.1) 2.0.50727 (.NET 2.0, 3.0, 3.5) 4.0.30319 (.NET 4.0)
回答by blowdart
.NET 3.0 and .NET 3.5 are additions to .NET 2.0, the core runtime is still the same, so you will not see 3.5 in the application pool settings. The problem may lie elsewhere.
.NET 3.0 和 .NET 3.5 是 .NET 2.0 的新增内容,核心运行时仍然相同,因此您不会在应用程序池设置中看到 3.5。问题可能出在其他地方。
You might try re-registering the 3.0 mappings though, by running servicemodelreg in the 3.0\Windows Communication Foundation directory, but that will only fix problems with WCF
您可以尝试重新注册 3.0 映射,方法是在 3.0\Windows Communication Foundation 目录中运行 servicemodelreg,但这只能解决 WCF 的问题
回答by Paulo Santos
The question here is that after .NET Framework 2.0 all other versions of it were incremental, not a new implementation.
这里的问题是,在 .NET Framework 2.0 之后,它的所有其他版本都是增量的,而不是新的实现。
That's why IIS reports only .NET 2.0.
这就是 IIS 仅报告 .NET 2.0 的原因。

