Common WCF Exception : Connection Unexpectedly Closed

后端 未结 12 1022
耶瑟儿~
耶瑟儿~ 2021-02-05 17:19

I have three projects. One is a WCF Services Project, one is a WPF Project, and one is a Microsoft Unit Testing Project. I setup the WCF Services project with a data object th

12条回答
  •  清歌不尽
    2021-02-05 17:49

    in my case i was returning a custom class object, one of the members of which was a data table. and if you dont have a name on the datatable it will throw this error.

    Dim oTable As DataTable = New DataTable 'this wont serialize
    Dim oTable As DataTable = New DataTable("MyTable")  'this will serialize
    

提交回复
热议问题