Today when I tried to open my email inbox in eM Client, it would not open and I got the following message: “An error has occurred in the application that prevents it from continuing”. If I restart the application, eM Client carries out a database check that takes a few minutes, and re-opens, but I still cannot access my email inbox. If I try to open it I get the same error message again. I can however still access my outbox and sent emails.
The ‘error details’ are set out below. The error message is very long and I have set out only the first part, but I can send it in full if that would be of assistance.
I would be very grateful for help. Thank you.
The ‘error details’ are as follows:
eM Client (7.0.27943.0)
Windows: Microsoft Windows NT 10.0.17134.0, Framework: 4.0.30319.42000
The following error has occurred:
System.InvalidCastException: Unable to cast object of type ‘System.DBNull’ to type ‘System.IComparable’.
at MailClient.Storage.Data.DbRepository`1.FindOids(QueryCondition condition, CancellationToken cancellationToken, SortField sortKeys)
2..ctor(Folder folder, ItemCollection2 itemCollection, IUIDispatcher dispatcher, CancellationToken cancellationToken, SortField sortFields)
at MailClient.Storage.Application.Folder.CreateMailView(IUIDispatcher dispatcher, CancellationToken cancellationToken, SortField sortFields)
at MailClient.UI.Controls.controlMessages.MailItemBehaviour.CreateView(IViewProvider viewProvider, IUIDispatcher dispatcher, CancellationToken cancellationToken, SortField sortFields)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)