Click here to Skip to main content
15,063,393 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi freinds
i have a method that return datatable type , when call this method from client give me a error : "there was an error while trying to deserialize parameter http://tempuri.org/:GetTableDoctorResult"
please help me and give me your idea ...
Posted
Comments
   
How can anyone know what's in there?
--SA
Prasyee 5-Nov-14 9:07am
   
found solution for this ? can you post your code?

1 solution

This is an old question, but it would be nice to see it closed out as answered so I'll give you what I can.

Probably the issue lies in your data. I believe there is an issue when you pass DBNull through WCF in a DataTable. If you convert that value to a true null, it will work.

The other weird solution out there seems to be to make sure your DataTable is named. If it does not hav a name, the WCF serializer chokes.

Those two ideas seem to solve most issues with passing DataTables through WCF. Let me know if it works.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900