I'm trying to access the USNG feature service from USNG 1000m UTM18 - NGA_US_National_Grid using:
Uri serviceUri = new Uri("url here");
ServiceFeatureTalbe featureTable = new ServiceFeatureTable(serviceUri);
Feature layer USNG = new FeatureLayer(featureTable);
await USNG.LoadAsync();
but it throws an exception: Invalid JSON.
Does anyone know why I can't load this service? I run a query of this service in a browser and it returns what seems to be correct JSON data, so why does Visual Studio throw this exception?
I tested this with v100.0 and I can reproduce the error. The good news is that if I try with the upcoming v100.1, the problem appears to have been fixed already. If you can wait a few weeks we'll have the new version out:
May be you are using visual studio 2017, try using 2015
The version of VS used does not affect the runtime execution of this.