Connection Client无法打开,报错CONNECTION client stopped working


【问题描述】

Connection Client无法打开,报错CONNECTION client stopped working,如下图 - 

在提取到Connection Client的日志文件Bentley.Connect.Client.exe.log中,可以找到下面报错信息:
ERROR - App - CurrentDomain_UnhandledException Unhandled Exception caught: System.TypeInitializationException: “Bentley.Connect.Client.Database.DbManager”的类型初始值设定项引发异常。 ---> System.EntryPointNotFoundException: 无法在 DLL“SQLite.Interop.dll”中找到名为“SI0773159780bced42”的入口点。
   在 System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(SQLiteConfigOpsEnum op)
   在 System.Data.SQLite.SQLite3.StaticIsInitialized()
   在 System.Data.SQLite.SQLiteLog.PrivateInitialize(String className)
   在 System.Data.SQLite.SQLiteLog.Initialize(String className)
   在 System.Data.SQLite.SQLiteConnection..ctor(String connectionString, Boolean parseViaFramework)
   在 Bentley.Connect.Client.Database.DbManager.VerifyDatabase()
   在 Bentley.Connect.Client.Database.DbManager..cctor()
   --- 内部异常堆栈跟踪的结尾 ---
   在 Bentley.Connect.Client.Database.DbManager.VerifyDatabase()
   在 Bentley.Connect.Client.Framework.Manager..ctor()
   在 Bentley.Connect.Client.Framework.Manager.GetManager()
   在 Bentley.Connect.Client.App..ctor()
   在 Bentley.Connect.Client.Program.Main()
System.EntryPointNotFoundException: 无法在 DLL“SQLite.Interop.dll”中找到名为“SI0773159780bced42”的入口点。
   在 System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(SQLiteConfigOpsEnum op)
   在 System.Data.SQLite.SQLite3.StaticIsInitialized()
   在 System.Data.SQLite.SQLiteLog.PrivateInitialize(String className)
   在 System.Data.SQLite.SQLiteLog.Initialize(String className)
   在 System.Data.SQLite.SQLiteConnection..ctor(String connectionString, Boolean parseViaFramework)
   在 Bentley.Connect.Client.Database.DbManager.VerifyDatabase()
   在 Bentley.Connect.Client.Database.DbManager..cctor()

另外,该报错也可以通过Connection Client的Crash日志中找到。该日志通常存储路径为 C:\Users\Administrator\AppData\Local\Bentley\CrashReports\

 

【解决方案】

  1. 退出登录 Connection Client
  2. 打开任务管理器,结束以下进程:Bentley.Licensing.Service.exe、Bentley.Connect.Client.exe,以及所有其他 Bentley 相关程序。
  3. 从控制面板卸载当前版本Connection Client
  4. 删除C:\Program Files\Common Files\Bentley Shared\CONNECTION Client 路径下的所有文件及文件夹。
  5. 删除%localappdata%\Bentley路径下的MySELECT.db文件
  6. 重新安装最新版Connection Client,并查看是否可以正常打开及登录。