为什么我找不到System.ServiceModel.WebHttpBinding?

时间:2010-07-07 17:47:51

标签: c# .net wcf

我添加了对“System.ServiceModel”库的引用,但是“WebHttpBinding”类不在其中。根据文档,它应该在那里(WebHttpBinding)。我已尝试使用3.5和4.0框架。

感谢您的帮助。

1 个答案:

答案 0 :(得分:15)

您需要添加对System.ServiceModel.Web(System.ServiceModel.Web.dll)的引用。

签入MSDN