문제

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

도움이 되었습니까?

해결책

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.

다른 팁

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.

When using attributes "Attribute" portion of the class is implied.

WebInvoke - WebInvokeAttribute

WebGet - WebGetAttribute

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top