Invalid JSON Exception

987
2
06-11-2018 10:39 PM
YashvitNaik
New Contributor III

On trying to load Layers as per the documented code that looks something like:

Uri serviceUri = new Uri("url ");

ServiceFeatureTable featureTable = new ServiceFeatureTable(serviceUri);

FeatureLayer  featureLayer= new FeatureLayer(featureTable);

await featureLayer.LoadAsync();

I get  “Esri.ArcGISRuntimeException: Invalid JSON  at System RuntimeExceptionServices.Exception”.

This Exception is thrown on a Android Device as well as iOS Ipad, both applications developed on Xamarin platform on the current build of Esri - v100.2.0.

If I run a query of this service in a browser it returns what seems to be correct JSON data and the layer in question here gets plotted on our web portal (via Javascript calls) too. 

Could this be a build issue ?

0 Kudos
2 Replies
dotMorten_esri
Esri Frequent Contributor
0 Kudos
YashvitNaik
New Contributor III

Yes its the same issue, Posted again since it was a old thread.

0 Kudos