Thanks! That got me moving in the right direction. But now I have a new problem. When I run from either code or via the REST interface, I get ERROR 000816: The tool is not valid. This happens both in code and REST interface
After researching that error code, common wisdom points to a permission issue and possibly enabling the geoprocessing feature in the runtime config file. So I changed all of the config parameters to true, but that resulted in the following error:
I was able to narrow it down to this attribute. When false, I get the 000816 error. When it's true, I get the one shown above.
<Package id="ProMosaicRasters" name="Mosaic Rasters" enabled="true" />
My desktop & pro are licensed via the C/JMTK license which is the desktop standard license. But I'm also running this inside of Visual Studio, so I'm assuming that the Dev/SDK would allow this to run. And I can run the model successfully in both ArcMap and Pro. If I'm reading this page correctly, Local Server geoprocessing tools support—ArcGIS Runtime SDK for .NET (WPF) | ArcGIS for Developers , the standard desktop license should work.
Here is a snapshot of my model.
Any advice you can give would be appreciated!! Maybe there is a better way to compute slope? The end goal of this model is to provide a result (features) where slope is >5%.