【发布时间】:2011-05-14 04:05:41
【问题描述】:
我正在开发一个需要 .NET 4.0 才能运行的 WPF 应用程序。企业上的机器都在运行.NET 3.5 SP1。是否可以使用其 .NET 4 DLL 部署应用程序,而无需在客户端计算机上安装完整的 .NET 4 Framework?
我们的实现有两个部分将我们与 .NET 4.0 结合
- 使用数据网格用户控件(这是最容易克服的问题)。
- 对我的 WCF 绑定使用 enableUnsecuredResponse 属性。
<bindings> <customBinding> <binding name="CadsBinding"> <textMessageEncoding messageVersion="Soap11"/> <security enableUnsecuredResponse="true" authenticationMode="UserNameOverTransport" allowInsecureTransport="true"> <secureConversationBootstrap/> </security> <httpTransport authenticationScheme="Basic"/> </binding> </customBinding> </bindings>
Microsoft 已发布以下 Hot Fix:A hotfix that enables WCF to send secured messages and to receive unsecured responses, and to send unsecured messages and to receive secured responses, is available for the .NET Framework 3.5 SP1,但如果我要将此 Hot Fix 部署到企业,我不妨为 .NET 4.0 客户端配置文件执行此操作,并在那里解决我的所有问题。
我知道 .NET 4.0 客户端配置文件安装。我要避免的是只为我的应用程序推出框架的安装。
我目前的想法: 这是不可能的。即使我部署了引用的 .NET 4 DLL,它们仍会尝试由无法理解它们的旧版本 CLR 处理。
【问题讨论】:
-
什么意思? .NET 4 应用程序如何在没有 .NET 4 的机器上运行?
-
@RPM1981 我有 98% 的把握这不可能完成,我希望社区可以帮助我解决另外 2% 的问题。
标签: wcf visual-studio-2010 .net-3.5 .net-4.0 app-config