c# - 引用 visual studio 2010 中缺少 System.ServiceModel.dll

标签 c# .net wcf visual-studio-2010

我想使用 ChannelFactory<TChannel> Class我正在尝试添加对 System.ServiceModel.dll 的引用但我没有在引用文献中看到它。

我看到了System.ServiceModel.web.dll但这是不同的。

我正在使用 VS 2010 .net 3.5。

知道这里的问题是什么吗?

最佳答案

做:

  1. 添加引用。
  2. 浏览,“C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\System.ServiceModel.dll
  3. 点击确定

这对我有用

关于c# - 引用 visual studio 2010 中缺少 System.ServiceModel.dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7511199/

相关文章:

c# - WPF TreeViewItem 切换按钮可见性

c# - 如何从 Asp.Net Core 中的特定 URL 加载 DLL 文件

asp.net - WCF 使用 Web 服务

wcf - 集成端点的 WCF 和 WSDL 的任何可行替代方案?

c# - 如何使用 StructureMap 将相同的接口(interface)映射到不同的 ConcreteClasses?

c# - 如何获取特定商店证书的CN?

c# - Windows Embedded 中的远程调试

c# - `Aggregate`怎么写成 `from .. in ..`?

c# - 如何正确删除数据库中的记录

wcf - TCP 连接和防火墙