WCF Service Reference - Getting “XmlException: Name cannot begin with the '<' character, hexadecimal value 0x3C” on Client Side

后端 未结 6 1632
醉梦人生
醉梦人生 2021-02-03 23:54

I have a smart client application communicating with its server via WCF. Data is created on the client and then sent over the service to be persisted. The server and client use

6条回答
  •  天涯浪人
    2021-02-04 00:19

    In my case, one of the classes had a property, whose datatype was object. Something like this:

    public class BuyAddOnServiceRequest
    {
        object site_id
    }
    

    after changing this to:

    public class BuyAddOnServiceRequest
    {
        string site_id
    }
    

    it worked!

提交回复
热议问题