AnsweredAssumed Answered

Exception loading mpk file

Question asked by yaron.avraham on Jan 21, 2020
Latest reply on Jan 21, 2020 by PMaske-esristaff

I'm trying to load mpk file called "l_3" using LocalMapService and get this exception 

"Failed to create service l_3 MapServer. Service failed to initialize: Error unpacking map package hr=0x80004005 (No ErrorInfo)"


this is my code:

var mapService = new LocalMapService(fileName);

 await mapService.StartAsync();


StartAsync throws the exception.


I can open the same mpk file on ArcGIS Pro without any problems.