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");
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?
-
Is the downloaded file a valid file geodatabase? That doesn't look like a license error --it looks like a "corrupt input" error.Vince– Vince2015年04月08日 13:19:30 +00:00Commented Apr 8, 2015 at 13:19
-
Are you trying to open a Geodatabase built by a more modern version of arcgis?Hornbydd– Hornbydd2015年04月08日 14:40:59 +00:00Commented Apr 8, 2015 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– NGP2015年04月09日 05:54:45 +00:00Commented Apr 9, 2015 at 5:54
-
@Hornbydd I am using ArcGIS 10.2.1 for Desktop and ArcGIS 10.2.5 Runtime for .NETNGP– NGP2015年04月09日 05:58:53 +00:00Commented Apr 9, 2015 at 5:58
-
Please do not bury important details in the comments -- edit the question instead.Vince– Vince2015年04月09日 10:25:35 +00:00Commented Apr 9, 2015 at 10:25
1 Answer 1
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.
-
Thank you for your answer. I was trying to open a geodatabase.NGP– NGP2015年04月13日 07:03:21 +00:00Commented Apr 13, 2015 at 7:03