Why am I getting this WCF Error Message?

后端 未结 4 1247
长发绾君心
长发绾君心 2021-01-12 04:54

I am getting the error below when I call my WCF service. What am I missing here?

\'System.String[]\' with data contract name
\'ArrayOfstring:http://schemas.         


        
4条回答
  •  伪装坚强ぢ
    2021-01-12 05:24

    You haven't posted the code, so my answer is based on the assumption that you have a class myEntity which you are trying to serialize. Try using a KnownTypeAttribute for the class

    e.g.

    [KnownType(typeof(myEntity))]
    

    You can refer to the following MSDN link: KnownTypeAttribute

提交回复
热议问题