AnsweredAssumed Answered

ArcGIS.Desktop.Core.Geoprocessing in standalone ArcGIS Pro SDK app

Question asked by sverker.norlanderesri-se-esridist Employee on Feb 25, 2019
Latest reply on Feb 25, 2019 by sverker.norlanderesri-se-esridist

So, I am trying to create a standalone app with the Pro SDK to run a geoprocessing tool (Register with Geodatabase).
First of all, I call ArcGIS.Desktop.Core.Geoprocessing.Geoprocessing.MakeValueArray(object[] args)
This call fails with

"System.NullReferenceException: Object reference not set to an instance of an object".

 

I've debugged this to the FindModule function in ArcGIS.Desktop.Framework.Contracts.Module and it comes down to the code:

if (FrameworkApplication._this == null)
    return (ArcGIS.Desktop.Framework.Contracts.Module) null;

 

Which is always true in my standalone application. I guess that this means that MakeValueArray() does not work in standalone mode? Or can I create my own FrameworkApplication without starting ArcGIS Pro?

Outcomes