I'm unable to instantiate the WebHttpBinding class when referencing the System.ServiceModel and System.ServiceModel.Web libraries for .NET 4.0. I can instantiate the class when referencing the 3.5 libraries. The documentation says WebHttpBinding is supported in 4.0 so what am I doing wrong?
new ChannelFactory<INotesService>
(new WebHttpBinding(),
new EndpointAddress("http://localhost:3380/Service.svc"))
When I hit CTRL + . on WebHttpBinding it doesn't find the namespace for it.
http://msdn.microsoft.com/en-us/library/system.servicemodel.webhttpbinding.aspx