0

当我尝试在 GNSDK for C# 中运行示例时,启用本地数据库 sqlite 会引发异常。在 GNSDK 日志中我看到了这个

Local Lookup Initialize: Version 3.07.0.2861  Built 2014-10-28 01:46-0700
2014-12-29 11:26:08.406     DEBUG       GNSDK Local     0x00001840  [api_trace] gnsdk_lookup_local_get_build_date
2014-12-29 11:26:08.519     DEBUG       GNSDK Local     0x00001840  [api_trace] gnsdk_lookup_local_get_version
2014-12-29 11:26:12.371     DEBUG       GNSDK Local     0x00001840  [api_trace] gnsdk_lookup_local_storage_location_set( gnsdk_lookup_local_gdball, ../../../sample_db )
2014-12-29 11:26:12.372     DEBUG       GNSDK Local     0x00001840  [api_trace] lookup_local_storage_location_set( gnsdk_lookup_local_storage_primary_identifier, gnsdk_lookup_local_gdball, ../../../sample_db )
2014-12-29 11:26:14.460     DEBUG       GNSDK Local     0x00001840  [api_trace] gnsdk_lookup_local_get_build_date
2014-12-29 11:26:14.506     DEBUG       GNSDK Local     0x00001840  [api_trace] gnsdk_lookup_local_get_version
2014-12-29 11:26:20.531     DEBUG       GNSDK Local     0x00001840  [api_trace] gnsdk_lookup_local_storage_info_count( gnsdk_lookup_local_gdbmdata, gnsdk_lookup_local_gdb_version, 5DCE53C )
2014-12-29 11:26:20.532     DEBUG       GNSDK Local     0x00001840  [api_trace] lookup_local_storage_location_get( gnsdk_lookup_local_storage_primary_identifier, gnsdk_lookup_local_gdbmdata, 5DCE524 )
2014-12-29 11:26:20.532     DEBUG       GNSDK SQLite    0x00001840  sqlite_storage_helpers.c[412]   Storage connection: gn_mdata.gdb
**2014-12-29 11:26:20.533   WARNING     GNSDK Local     0x00001840  lookup_local_storage_helpers.c[219] Failed to open storage group: 'gn_mdata.gdb'**
2014-12-29 11:26:20.533     DEBUG       GNSDK Manager   0x00001840  [api_trace] gnsdk_manager_error_info

你有什么想法可以帮助我吗?

4

1 回答 1

0

你不能使用本地模式,你需要一个特殊的许可证文件。

确保了解使用本地 sqlite 缓存进行查询和拥有本地元数据数据库之间存在区别,这对你有用(除非你有商业协议这样做) )。

于 2015-01-09T19:28:22.233 回答