WCF service reference.cs issue

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
njs123
Posts: 25
Joined: Sun Dec 25, 2016 11:10 pm

WCF service reference.cs issue

Postby njs123 » 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

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);

Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 34 guests

 

 

cron