Error database

eM Client (6.0.20154.0)Windows: Microsoft Windows NT 6.2.9200.0, Framework: 2.0.50727.8670
The following error has occurred:
System.TypeInitializationException: Инициализатор типа “MailClient.Storage.Application.Folder” выдал исключение. —> System.Data.SQLite.SQLiteException: SQL logic error or missing database
no such table: folders.Folders
   в System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, UInt32 timeoutMS, String& strRemain)
   в System.Data.SQLite.SQLiteCommand.BuildNextCommand()
   в System.Data.SQLite.SQLiteCommand.GetStatement(Int32 index)
   в System.Data.SQLite.SQLiteDataReader.NextResult()
   в System.Data.SQLite.SQLiteDataReader…ctor(SQLiteCommand cmd, CommandBehavior behave)
   в System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   в System.Data.SQLite.SQLiteCommand.ExecuteDbDataReader(CommandBehavior behavior)
   в System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
   в MailClient.Storage.Data.SQLite.DbRepository1.FindByOids(IList1 oids)
   в MailClient.Storage.Data.SQLite.DbRepository`1.FindByOid(UInt64 oid)
   в MailClient.Storage.Application.Folder.GetFolderObjectByOid(UInt64 oid)
   в MailClient.Storage.Application.Folder…cctor()
   — Конец трассировки внутреннего стека исключений —
   в MailClient.Accounts.MailAccount…ctor(MailAccountConfiguration config)
   в MailClient.Accounts.Db.MailAccountConfiguration.CreateAccount()
   в MailClient.Accounts.AccountConfiguration.get_Account()
   в MailClient.Accounts.Db.AccountCollection.Load()
   в MailClient.Accounts.AccountManager…ctor()
   в MailClient.Accounts.AccountManager.Initialize()
   в MailClient.Program.Main(String[] args)

" rel=“nofollow” target="_blank">http://emclient.com/ns/report">;

eM Client
6.0.20154.0

false

Microsoft Windows NT 6.2.9200.0
2.0.50727.8670


System.TypeInitializationException
Инициализатор типа “MailClient.Storage.Application.Folder” выдал исключение.
MailClient




MailClient.exe
100686897
MailClient
MailClient.Accounts.MailAccount
.ctor


MailClient
MailClient.Accounts.Db.MailAccountConfiguration
config



2f
71




MailClient.exe
100686890
MailClient
MailClient.Accounts.Db.MailAccountConfiguration
CreateAccount


0
19




MailClient.exe
100663393
MailClient
MailClient.Accounts.AccountConfiguration
get_Account


a
18




MailClient.exe
100686780
MailClient
MailClient.Accounts.Db.AccountCollection
Load


7f
17e




MailClient.exe
100663445
MailClient
MailClient.Accounts.AccountManager
.ctor


86
114




MailClient.exe
100663446
MailClient
MailClient.Accounts.AccountManager
Initialize


15
5a




MailClient.exe
100675610
MailClient
MailClient.Program
Main


mscorlib
System.String[]
args



de0
1a3e





System.Data.SQLite.SQLiteException
SQL logic error or missing database
no such table: folders.Folders
System.Data.SQLite




System.Data.SQLite.dll
100663600
System.Data.SQLite
System.Data.SQLite.SQLite3
Prepare


System.Data.SQLite
System.Data.SQLite.SQLiteConnection
cnn


mscorlib
System.String
strSql


System.Data.SQLite
System.Data.SQLite.SQLiteStatement
previous


mscorlib
System.UInt32
timeoutMS


mscorlib
System.String&
strRemain



265
4e1




System.Data.SQLite.dll
100663734
System.Data.SQLite
System.Data.SQLite.SQLiteCommand
BuildNextCommand


f6
14b




System.Data.SQLite.dll
100663735
System.Data.SQLite
System.Data.SQLite.SQLiteCommand
GetStatement


mscorlib
System.Int32
index



8
12




System.Data.SQLite.dll
100663982
System.Data.SQLite
System.Data.SQLite.SQLiteDataReader
NextResult


e4
10f




System.Data.SQLite.dll
100663943
System.Data.SQLite
System.Data.SQLite.SQLiteDataReader
.ctor


System.Data.SQLite
System.Data.SQLite.SQLiteCommand
cmd


System.Data
System.Data.CommandBehavior
behave



5d
79




System.Data.SQLite.dll
100663757
System.Data.SQLite
System.Data.SQLite.SQLiteCommand
ExecuteReader


System.Data
System.Data.CommandBehavior
behavior



c
26




System.Data.SQLite.dll
100663756
System.Data.SQLite
System.Data.SQLite.SQLiteCommand
ExecuteDbDataReader


System.Data
System.Data.CommandBehavior
behavior



0
4




System.Data.dll
100668155
System.Data
System.Data.Common.DbCommand
System.Data.IDbCommand.ExecuteReader


0
c




MailClient.exe
100670125
MailClient
MailClient.Storage.Data.SQLite.DbRepository1</type><br> <name>FindByOids</name><br> <parameters><br> <parameter><br> <assembly>mscorlib</assembly><br> <type>System.Collections.Generic.IList1[[System.UInt64, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
oids



15a
2be




MailClient.exe
100670124
MailClient
MailClient.Storage.Data.SQLite.DbRepository`1
FindByOid


mscorlib
System.UInt64
oid



0
33




MailClient.exe
100677111
MailClient
MailClient.Storage.Application.Folder
GetFolderObjectByOid


mscorlib
System.UInt64
oid



28
a0




MailClient.exe
100677104
MailClient
MailClient.Storage.Application.Folder
.cctor


1f5
531








MailClient.exe
C:\Program Files (x86)\eM Client\MailClient.exe
MailClient.exe
MailClient.exe
6.0.20154.0
eM Client
eM Client
6.0.20154.0
False
False
False
False
False
Независимо от языка


ntdll.dll
C:\Windows\SYSTEM32\ntdll.dll
ntdll.dll
ntdll.dll.mui
10.0.10586.0 (th2_release.151029-1700)
Системная библиотека NT
Операционная система Microsoft® Windows®
10.0.10586.0
False
False
False
False
False
Русский (Россия)


MSCOREE.DLL
C:\Windows\SYSTEM32\MSCOREE.DLL
mscoree.dll
mscoree.dll
10.0.10586.0 (th2_release.151029-1700)
Microsoft .NET Runtime Execution Engine
Microsoft® Windows® Operating System
10.0.10586.0
False
False
False
False
False
Английский (США)


KERNEL32.dll
C:\Windows\SYSTEM32\KERNEL32.dll
kernel32
kernel32
10.0.10586.0 (th2_release.151029-1700)
Библиотека клиента Windows NT BASE API
Операционная система Microsoft® Windows®
10.0.10586.0
False
False
False
False
False
Русский (Россия)


KERNELBASE.dll
C:\Windows\SYSTEM32\KERNELBASE.dll
Kernelbase.dll
Kernelbase.dll.mui
10.0.10586.0 (th2_release.151029-1700)
Библиотека клиента Windows NT BASE API
Операционная система Microsoft® Windows®
10.0.10586.0
False
False
False
False
False
Русский (Россия)


ADVAPI32.dll
C:\Windows\SYSTEM32\ADVAPI32.dll
advapi32.dll
advapi32.dll.mui
10.0.10586.0 (th2_release.151029-1700)
Расширенная библиотека API Windows 32
Операционная система Microsoft® Windows®
10.0.10586.0
False
False
False
False
False
Русский (Россия)


msvcrt.dll
C:\Windows\SYSTEM32\msvcrt.dll
msvcrt.dll
msvcrt.dll
7.0.10586.0 (th2_release.151029-1700)
Windows NT CRT DLL
Microsoft® Windows® Operating System
7.0.10586.0
False
False
False
False
False
Английский (США)


sechost.dll
C:\Windows\SYSTEM32\sechost.dll
sechost.dll
sechost.dll.mui
10.0.10586.0 (th2_release.151029-1700)
Host for SCM/SDDL/LSA Lookup APIs
Microsoft® Windows® Operating System
10.0.10586.0
False
False
False
False
False
Английский (США)


RPCRT4.dll
C:\Windows\SYSTEM32\RPCRT4.dll
rpcrt4.dll
rpcrt4.dll.mui
10.0.10586.0 (th2_release.151029-1700)
Библиотека удаленного вызова процедур
Операционная система Microsoft® Windows®
10.0.10586.0
False
False
False
False
False
Русский (Россия)


SspiCli.dll
C:\Windows\SYSTEM32\SspiCli.dll
security.dll
security.dll
10.0.10586.0 (th2_release.151029-1700)
Security Support Provider Interface
Microsoft® Windows® Operating System
10.0.10586.0
False
False
False
False
False
Английский (США)


CRYPTBASE.dll
C:\Windows\SYSTEM32\CRYPTBASE.dll
cryptbase.dll
cryptbase.dll
10.0.10586.0 (th2_release.151029-1700)
Base cryptographic API DLL
Microsoft® Windows® Operating System
10.0.10586.0
False
False
False
False
False
Английский (США)


bcryptPrimitives.dll
C:\Windows\SYSTEM32\bcryptPrimitives.dll
bcryptprimitives.dll
bcryptprimitives.dll
10.0.10586.0 (th2_release.151029-1700)
Windows Cryptographic Primitives Library
Microsoft® Windows® Operating System
10.0.10586.0
False
False
False
False
False
Английский (США)


mscoreei.dll
C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll
mscoreei.dll
mscoreei.dll
4.6.1038.0 built by: NETFXREL2
Microsoft .NET Runtime Execution Engine
Microsoft® .NET Framework
4.6.1038.0
False
False
False
True
False
Английский (США)


SHLWAPI.dll
C:\Windows\SYSTEM32\SHLWAPI.dll
SHLWAPI
SHLWAPI.DLL.MUI
10.0.10586.0 (th2_release.151029-1700)
Библиотека небольших программ оболочки
Операционная система Microsoft® Windows®
10.0.10586.0
False
False
False
False
False
Русский (Россия)


combase.dll
C:\Windows\SYSTEM32\combase.dll
COMBASE.DLL
COMBASE.DLL.MUI
10.0.10586.0 (th2_release.151029-1700)
Microsoft COM для Windows
Операционная система Microsoft® Windows®
10.0.10586.0
False
False
False
False
False
Русский (Россия)


GDI32.dll
C:\Windows\SYSTEM32\GDI32.dll
gdi32
gdi32
10.0.10586.0 (th2_release.151029-1700)
GDI Client DLL
Microsoft® Windows® Operating System
10.0.10586.0
False
False
False
False
False
Английский (США)


USER32.dll
C:\Windows\SYSTEM32\USER32.dll
user32
user32
10.0.10586.0 (th2_release.151029-1700)
Многопользовательская библиотека клиента USER API Windows
Операционная система Microsoft® Windows®
10.0.10586.0
False
False
False
False
False
Русский (Россия)


IMM32.DLL
C:\Windows\SYSTEM32\IMM32.DLL
imm32
imm32
10.0.10586.0 (th2_release.151029-1700)
Multi-User Windows IMM32 API Client DLL
Microsoft® Windows® Operating System
10.0.10586.0
False
False
False
False
False
Английский (США)


kernel.appcore.dll
C:\Windows\SYSTEM32\kernel.appcore.dll
kernel.appcore.dll
kernel.appcore.dll
10.0.10586.0 (th2_release.151029-1700)
AppModel API Host
Microsoft® Windows® Operating System
10.0.10586.0
False
False
False
False
False
Английский (США)


VERSION.dll
C:\Windows\SYSTEM32\VERSION.dll
version
VERSION.DLL
10.0.10586.0 (th2_release.151029-1700)
Version Checking and File Installation Libraries
Microsoft® Windows® Operating System
10.0.10586.0
False
False
False
False
False
Английский (США)


mscorwks.dll
C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
mscorwks.dll
mscorwks.dll
2.0.50727.8670 (QFE.050727-8600)
Microsoft .NET Runtime Common Language Runtime - WorkStation
Microsoft® .NET Framework
2.0.50727.8670
False
False
False
False
False
Английский (США)


MSVCR80.dll
C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.9193_none_d09188224426efcd\MSVCR80.dll
MSVCR80.DLL
MSVCR80.DLL
8.00.50727.9193
Microsoft® C Runtime Library
Microsoft® Visual Studio® 2005
8.00.50727.9193
False
False
False
False
False
Английский (США)


shell32.dll
C:\Windows\SYSTEM32\shell32.dll
SHELL32
SHELL32.DLL.MUI
10.0.10586.0 (th2_release.151029-1700)
Общая библиотека оболочки Windows
Операционная система Microsoft® Windows®
10.0.10586.0
False
False
False
False
False
Русский (Россия)


cfgmgr32.dll
C:\Windows\SYSTEM32\cfgmgr32.dll
cfgmgr32.dll
CFGMGR32.DLL
10.0.10586.0 (th2_release.151029-1700)
Configuration Manager DLL
Microsoft® Windows® Operating System
10.0.10586.0
False
False
False
False
False
Английский (США)


windows.storage.dll
C:\Windows\SYSTEM32\windows.storage.dll
Windows.Storage
Windows.Storage.dll.MUI
10.0.10586.0 (th2_release.151029-1700)
API хранения Microsoft WinRT
Операционная система Microsoft® Windows®
10.0.10586.0
False
False
False
False
False
Русский (Россия)


shcore.dll
C:\Windows\SYSTEM32\shcore.dll
SHCORE
SHCORE.dll.mui
10.0.10586.0 (th2_release.151029-1700)
SHCORE
Операционная система Microsoft® Windows®
10.0.10586.0
False
False
False
False
False
Русский (Россия)


powrprof.dll
C:\Windows\SYSTEM32\powrprof.dll
POWRPROF
POWRPROF.DLL.MUI
10.0.10586.0 (th2_release.151029-1700)
DLL модуля поддержки профиля управления питанием
Операционная система Microsoft® Windows®
10.0.10586.0
False
False
False
False
False
Русский (Россия)


profapi.dll
C:\Windows\SYSTEM32\profapi.dll
PROFAPI.DLL
PROFAPI.DLL
10.0.10586.0 (th2_release.151029-1700)
User Profile Basic API
Microsoft® Windows® Operating System
10.0.10586.0
False
False
False
False
False
Английский (США)


mscorlib.dll
C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll
mscorlib.dll
mscorlib.dll
2.0.50727.8670 (QFE.050727-8600)
Microsoft Common Language Runtime Class Library
Microsoft® .NET Framework
2.0.50727.8670
False
False
False
False
False
Английский (США)


mscorsec.dll
C:\Windows\Microsoft.NET\Framework\v2.0.5

![](https://d2r1vs3d9006ap.cloudfront.net/s3_images/1308458/RackMultipart20151110-5952-irt12i- _______ inline.PNG?1447171652 “Image https//d2r1vs3d9006apcloudfrontnet/s3_images/1308458/RackMultipart20151110-5952-irt12i-_______inlinePNG1447171652”)

Hi Sergey,
seems like your database is indeed corrupted. Try deleting the database and starting eM Client with a clean one. If you have any backups, you can restore from them.
Your database is located in C:\Users\YOUR WINDOWS USER ACCOUNT\AppData\Roaming\eM Client.

Best regards,
Olivia

I do not have a backup, but I still have messages in local folders. Perhaps they still somehow be restored?

Hello Sergey,
unfortunately, since your database is broken and you didn’t do any backups, data from your local folders is lost.
If you do save your data in local folders, I do recommend setting up an automatic backup to avoid this problem in the future (go to Tools > Settings > General > Backup).

Best regards,
Olivia

I have some backup folder C:\Users\YOUR WINDOWS USER ACCOUNT\AppData\Roaming\eM Client, but with all of them the error checking data, the database itself is not damaged (see screenshot). Maybe the problem is something else?

That is not a backup. That is your actual database.
You can try renaming that folder (“eM Client old” or something) and start up the application again. If the error pops up again, the issue is with eM Client, if it doesn’t it was with the database.
From the screenshot I see the database check was done, but that doesn’t mean the data is in good condition or accessible.

Best wishes,
Olivia