.NET 4.0 용 System.ServiceModel 및 System.ServiceModel.Web 라이브러리를 참조 할 때 WebHttpBinding 클래스를 인스턴스화 할 수 없습니다. 3.5 라이브러리를 참조 할 때 클래스를 인스턴스화 할 수 있습니다. 설명서에 나와있는 WebHttpBinding은 4.0에서 지원되므로 잘못되었습니다..NET 4.0의 WebHttpBinding?
new ChannelFactory<INotesService>
(new WebHttpBinding(),
new EndpointAddress("http://localhost:3380/Service.svc"))
내가 Ctrl +를 눌렀을 때. WebHttpBinding에서 네임 스페이스를 찾지 못합니다.
http://msdn.microsoft.com/en-us/library/system.servicemodel.webhttpbinding.aspx
프로젝트 속성에서 대상 프레임 워크 옵션을 확인하십시오. 대상 프레임 워크가 .Net 4입니까? –