[email protected]

System.TypeInitializationException: The type initializer for ‘DbRepair.DbTools’ threw an exception. —> System.IO.FileLoadException: Could not load file or assembly ‘System.Data.SQLite, Version=1.0.67.2, Culture=neutral, PublicKeyToken=db937bc2d44ff139’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: ‘System.Data.SQLite, Version=1.0.67.2, Culture=neutral, PublicKeyToken=db937bc2d44ff139’
at DbRepair.DbTools…cctor()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

— End of inner exception stack trace —
at DbRepair.DbTools.GetSchemaVersion(String fileName)
at DbRepair.Form1.CheckConsistency(Int32& affectedRows, DbException& consistencyError)
at DbRepair.Form1.Check(Object state)

Please back-up your database first, you database are located under: C:\Users%Current User%\AppData\Roaming\eM Client (Vista/Win7)
C:\Documents and Settings%Current User%\Application Data\eM Client (XP)

After backing-up, delete the database from the location mention above, restart eM and see if it runs. If it still shows similar error message, then your .NET installation has became corrupt. Please refer to this post: https://discourse.emclient.com/emclient/to…

Note that in the post the error message are slightly different, but it is still the .NET issue.