WCF service reference.cs issue
Posted: Tue Jan 24, 2017 1:54 am
Hi
As per steps described in page
http://cshtml5.com/links/wcf-limitations-and-tutorials.aspx
I created simple WCF service
However when I add reference to the service,
I get following error in Reference.cs file
above line is highlighted with following error:
As per steps described in page
http://cshtml5.com/links/wcf-limitations-and-tutorials.aspx
I created simple WCF service
However when I add reference to the service,
I get following error in Reference.cs file
Code: Select all
System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)
above line is highlighted with following error:
Code: Select all
Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'XmlSerializerFormatAttribute' does not exist in the namespace 'System.ServiceModel' (are you missing an assembly reference?) \Service References\TestClient\Reference.cs 31 Active
Code: Select all
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStaff/GetSystemAlert2", ReplyAction="http://tempuri.org/IStaff/GetSystemAlert2Response")]
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
MyCustomClass[] GetSystemAlert(string test);