We have a mpkx file, which is created from ArcGIS Pro 2.9. we try to load it with Esri.ArcGISRuntime.LocalServices. But got the following error:
Service failed to initialize: The map package is not supported by the Local Server. There is no .msd file available inside the package. Check that it was authored with Local Server support enabled.
But I cannot find how to "authored with Local Server support enabled" in arcgis pro. would you please show me how to do that?
Thanks.
Solved! Go to Solution.
You need to check ON `Support ArcGIS Maps SDK` at the time of creating a map package. See ArcGIS Pro reference doc https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/package-map.htm
Also see our public sample on accessing a Featurelayer from a localservice:
https://github.com/Esri/arcgis-maps-sdk-dotnet-samples/tree/main/src/WPF/WPF.Viewer/Samples/LocalSer...
Hope this helps!
You need to check ON `Support ArcGIS Maps SDK` at the time of creating a map package. See ArcGIS Pro reference doc https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/package-map.htm
Also see our public sample on accessing a Featurelayer from a localservice:
https://github.com/Esri/arcgis-maps-sdk-dotnet-samples/tree/main/src/WPF/WPF.Viewer/Samples/LocalSer...
Hope this helps!
Thank you very much @PreetiMaske . I got our map package with "Support ArcGIS Maps SDK". But when I use that public sample to load our package, got another error:
Failed to create service test MapServer. Service failed to initialize: Feature service creation failed. hr=0x8004006e Editor Tracking is in database time zone and Date Field Time Reference is not set for the service.
I searched for the time zone setting in the public sample repo. but I did not find any. Would you please let me know how to fix this issue?
Thanks again
@JunGuan ,
I looked up that error and it appears to be a data preparation and publishing error. Perhaps your MMPK has feature services that are published by reference. I found this help doc that might give you insight on how to fix this.
Hope this helps!