I have a WCF service and a Android app that I am passing data back and forth using JSON. I had everything working locally. When I published to the server, I now get this error whenever I try to read in the JSON in the android app. I found several suggestions for using prohibit on a XmlReader, but I'm not using a XmlReader. Here is the code that generates the JSON (which I cannot get to format properly in this forum):
Public Function GetJson(ByVal dt As DataTable) As String
Dim rows As New List(Of Dictionary(Of String, Object))()
Dim row As Dictionary(Of String, Object) = Nothing
For Each dr As DataRow In dt.Rows
row = New Dictionary(Of String, Object)() For Each dc As DataColumn In dt.Columns row.Add(dc.ColumnName.Trim(), dr(dc)) Next rows.Add(row)
Is there anything I can do on either end to prevent this error? I thought a DTD was a <!DOCTYPE, but that is not even in my JSON. Which by the way is this:
Thanks for any help you can offer.