I'm trying to to add a raster file using a dynamic workspace based on this example (Local server dynamic workspace raster | ArcGIS for Developers )
and i'm getting this exception
"ArcGISWebException: Unable to find the specified 'dataSourceName' in 'dataSource' for dynamic dataLayer with 'id': 0."
any ideas on what #i'm doing wrong?
What is the difference between using the local server and dynamic workspace and adding the raster directly?
the reason i tried using the local server is that when i'm adding the raster file in that is in your sample using the direct API the raster image is not reloaded correctly when changing zoom levels.
I've tried your shape file dynamic workspace example and i'm getting the same error.
Use of the local server to load raster data is in most cases a legacy approach and is now superseded by the direct API approach.
Does the raster data display correctly in ArcGIS Pro?