Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find [WebInvoke] and [WebGet]

I can't find [WebInvoke] and [WebGet]. I have already add System.ServiceModel reference. what is the problem? I use .NET Framwork 4

like image 262
Darshana Avatar asked Mar 21 '12 04:03

Darshana


2 Answers

You need to add a reference to the System.ServiceModel.Web.dll. Notice that you need to target the full .NET Framework (either 3.5 or 4.0) - if your application is targeting the client profile for those frameworks, this assembly won't be available.

like image 105
carlosfigueira Avatar answered Nov 05 '22 22:11

carlosfigueira


Need to add the reference System.ServiceModel.Web.dll and import the namespace System.ServiceModel.Web by using below statement using System.ServiceModel.Web; Then it will work.

like image 2
Srinivasa Rao P Avatar answered Nov 05 '22 23:11

Srinivasa Rao P