"Unable to open the database file : "

4735
2
Jump to solution
04-08-2015 01:51 AM
Nicolae_GeorgePopa
New Contributor

I am trying to test the ArcGIS map to see if it fits the needs of my app. Unfortunately I have encountered a problem when trying to read a geodatabase created with ArcCatalog or a sample downloaded from the internet. I have tried with a developer licence and Basic license but both return the same error.

The error is:

"Unable to open the database file : "

and it it thrown on line :

Geodatabase geodatabase = await Geodatabase.OpenAsync(@"{path}\db.gdb");

StackTrace:

StackTrace

"  at RuntimeCoreNet.Interop.HandleException(Boolean retVal)\r\n  

at RuntimeCoreNet.CoreFeatureCache..ctor(String databasePath)\r\n 

at Esri.ArcGISRuntime.Data.Geodatabase..ctor(String path)\r\n 

at Esri.ArcGISRuntime.Data.Geodatabase.OpenAsync(String path)\r\n 

at SmartAssArcGISWPF.MainWindow.<MyMapView_Loaded>d__0.MoveNext() in....

string

Has anyone encountered the same problem and found a solution?

The licence for Developer is supposed to contain all functionality, is this one with geodatabase not included?

0 Kudos
1 Solution

Accepted Solutions
dotMorten_esri
Esri Notable Contributor

Are you generating a Runtime Geodatabase, or are you trying to open a File Geodatabase? (File geodatabases are not supported)

See https://developers.arcgis.com/net/desktop/guide/create-an-offline-map.htm for more details.

View solution in original post

2 Replies
dotMorten_esri
Esri Notable Contributor

Are you generating a Runtime Geodatabase, or are you trying to open a File Geodatabase? (File geodatabases are not supported)

See https://developers.arcgis.com/net/desktop/guide/create-an-offline-map.htm for more details.

Nicolae_GeorgePopa
New Contributor

I was trying to open a file geodatabase. Thank you for the answer.

0 Kudos