Select to view content in your preferred language

What's the best API or SDK for a.NET server process to read data from ArcGIS Online?

621
2
Jump to solution
04-12-2023 05:06 AM
kevinsmgov
New Contributor

I am developing a .NET 6 server process that needs access to the tabular data of various featuresets we host on ArcGIS online (I'm not trying to display maps, I just need to lookup and reference the attributes of various features).

There is an Esri.ArcGISRuntime package that would seem to be the appropriate SDK (i.e. officially developed by ESRI) but when I try to use it I get the following message:

The 'Esri.ArcGISRuntime' nuget package cannot be used to target 'net6.0' for output type 'Exe'. Only platform-agnostic class libraries or Windows, iOS and Android platforms are supported.

My server is Windows and the application is compiled for windows. However, even if I use that in a class library, once I reference that library in my application, I get the same error message.

If necessary, I can make REST calls to raw JSON and deserialize things manually but it would be nice if there was an SDK that managed all the low-end plumbing.

1 Solution

Accepted Solutions
dotMorten_esri
Esri Notable Contributor

The Esri.ArcGISRuntime license isn't allowing use in server applications, nor has it been tested to run safely in such an environment.

The specific error you're getting though is because of the targeting framework which isn't compatible with what you're targeting.

For a simple query API either just do the raw rest calls, or perhaps look at something like https://www.nuget.org/packages/Anywhere.ArcGIS

View solution in original post

2 Replies
dotMorten_esri
Esri Notable Contributor

The Esri.ArcGISRuntime license isn't allowing use in server applications, nor has it been tested to run safely in such an environment.

The specific error you're getting though is because of the targeting framework which isn't compatible with what you're targeting.

For a simple query API either just do the raw rest calls, or perhaps look at something like https://www.nuget.org/packages/Anywhere.ArcGIS

kevinsmgov
New Contributor

One related question...

When we self-hosted our ESRI server, we had SOAP capability to generate corresponding feature objects in our .NET applications for REST services. However, I'm not finding that now that we are on ArcGIS Online. Is that selectable by our Admins or just not offered with ArcGIS Online?

0 Kudos