0

I am tasked with requirements for the production machine (Server 2008 R2), and am wondering if this project setup would work with only .NET 4.0 installed and IIS 7 for WCF Service. Is .NET 3.5 needed to load assemblies that that are targeted to it?

A VS2010 solution contains several projects:

Projects targeted to .NET 3.5:

  • Model (DTO) classes
  • Business Logic Layer
  • Data Access Layer
  • Interfaces for BLL and DAL

Projects targeted to .NET 4.0:

  • WCF Service project wrapping BLL methods

In development, there's 2.0, 3.5 and 4.0 installed on the machine and everything works fine with WCF hosted in IIS6.0

4

2 回答 2

0

默认情况下,Server 2008 R2 安装了 .Net Framework v2.0.50727,但您可以使用以下方式安装 .NET 3.5 Sp1:Server Manager -> Features -> .Net Framework 3.5.1 Features. 如果使用 .NET 3.5 编译,我认为 .NET 4.0 客户端不足以运行您的 BLL

于 2010-11-25T14:44:01.287 回答
0

如果其他人遇到同样的问题:

不需要 .NET 3.5,因为已发布的 DLL 只需安装 .NET2 和 .NET4 即可正常运行。

面向 .NET4 的 WCF 服务在 IIS 7.0 下运行正常,无需修改或特殊配置。

于 2010-11-29T16:59:10.120 回答