参考Visual Studio 2010中缺少System.ServiceModel.dll

时间:2011-09-22 07:35:49

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

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

我看到System.ServiceModel.web.dll,但它有所不同。

我正在使用VS 2010 .net 3.5。

知道这里有什么问题吗?

2 个答案:

答案 0 :(得分:11)

执行:

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

答案 1 :(得分:4)

右键单击解决方案资源管理器中的项目,属性,然后再次检查并选择.NET Framework 3.5而不是客户端配置文件,您可能需要的所有其他信息都在这里,包括一个有用的屏幕截图:Where is System.ServiceModel.Web.dll?