AnsweredAssumed Answered

Windows 10 SDK arcgis runtime OpenAsync

Question asked by tawfiq.dawod on Mar 28, 2016
Latest reply on Mar 29, 2016 by tawfiq.dawod

I am using Windows 10 phone SDK.

I am trying to open geodatabase file in my code and add it to map view,

this is my code:

 

var localData = Windows.ApplicationModel.Package.Current.InstalledLocation;

var gdbPath = localData.Path + @"\layer1.geodatabase";

try {

       var localGdb = await Esri.ArcGISRuntime.Data.Geodatabase.OpenAsync(gdbPath);

 

} catch (Exception e) {

                Debug.WriteLine(e.Message);

                Debug.WriteLine(e.StackTrace);

}

 

the line in try block generates an exception that Unable to open geodatabase file.

I try another deodatabase file and same problem,

I ascertained file path.

I used Internet (Client and Server) permission in Package.appxmanifest file.

any one can help ?

Outcomes