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.

I am using ArcGIS 10.2.1 for Desktop and ArcGIS 10.2.5 Runtime for .NET

The error is: Unable to open the database file

and it is thrown on line :

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


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

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?

  • Is the downloaded file a valid file geodatabase? That doesn't look like a license error --it looks like a "corrupt input" error. – Vince Apr 8 '15 at 13:19
  • Are you trying to open a Geodatabase built by a more modern version of arcgis? – Hornbydd Apr 8 '15 at 14:40
  • @Vince ArcCatalog can open the gdb, both the one I created and the sample I downloaded from the internet. I does not look like a corrupt file. – NGP Apr 9 '15 at 5:54
  • @Hornbydd I am using ArcGIS 10.2.1 for Desktop and ArcGIS 10.2.5 Runtime for .NET – NGP Apr 9 '15 at 5:58
  • Please do not bury important details in the comments -- edit the question instead. – Vince Apr 9 '15 at 10:25

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.

| improve this answer | |
  • Thank you for your answer. I was trying to open a geodatabase. – NGP Apr 13 '15 at 7:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.