Select to view content in your preferred language

Map Package (mpkx) cannot be loaded by ArcGIS runtime with local server

429
3
Jump to solution
06-19-2024 01:25 PM
JunGuan
Emerging Contributor

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.

 

0 Kudos
1 Solution

Accepted Solutions
PreetiMaske
Esri Regular Contributor

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!

View solution in original post

3 Replies
PreetiMaske
Esri Regular Contributor

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!

JunGuan
Emerging Contributor

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

0 Kudos
PreetiMaske
Esri Regular Contributor

@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.

https://enterprise.arcgis.com/en/server/10.3/publish-services/windows/00129-data-frame-has-layers-th...

 

Hope this helps!

0 Kudos