AnsweredAssumed Answered

I keep getting Esri.ArcGISRuntime.Http.ArcGISWebException when trying to load .mpk file

Question asked by generalSurvey on Jan 21, 2018
Latest reply on Jan 21, 2018 by generalSurvey

So firstly, I start the server with 


LocalServer.Instance.StatusChanged += ServerStatusChanged;
await LocalServer.Instance.StartAsync();

Then in the function 

private async void ServerStatusChanged(object sender, StatusChangedEventArgs e)

I have these 

if (e.Status == LocalServerStatus.Started)
   _localMapService = new LocalMapService(Environment.CurrentDirectory + @"\Maps\Turceni_map.mpk");
   _localMapService.StatusChanged += _localMapService_StatusChanged;
   await _localMapService.StartAsync();

The exception is thrown when _localMapService tries to start. I have already verified the path is correct. Also, the server seems to start with no problem. What could be the cause ? I have also attached the class file