System.IndexOutOfRangeException: Index was outside the bounds of the array

I am getting the following error message when opening up eM Client can you please help:

eM Client (6.0.19714.0)
Windows: Microsoft Windows NT 5.1.2600 Service Pack 3, Framework: 2.0.50727.3649
The following error has occurred:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at MailClient.Protocols.Common.FolderSynchronizer.GetFolderPath(Folder[] folders, Folder folder)
at MailClient.Protocols.Common.FolderSynchronizer.<>c__DisplayClass5.b__1(CompletionEventArgs completionEventArgs)
at MailClient.Protocols.Common.RequestIssuer.<>c__DisplayClass5.b__0(Object sender, CompletionEventArgs e)
at MailClient.Commands.Command.Complete()
at MailClient.Commands.Command.Process(WorkerStatus status)
at MailClient.Commands.SynchronizationQueue.ThreadWorker(Object threadData)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)

Hi, try to use this file http://www.microsoft.com/en-us/downlo… and let me know if it helped you.

Jan

Traced the fault to a mixture of a badly migrated mailbox to office365, It would seem that Em Client does not like imap folders within exchange. Also Em client doesn’t seem to run very well unless the user logged on has local administrator privileges.

Thank-you for your response.

eM Client is designed to be run only on account with administrator privileges. But thank you for more information about your issue.

Just our of curiosity, have you tried to install that service pack?

Jan

Running Windows 8.1
Installed .NET 3.5 Framework
Uninstalled and reinstalled em Client

I too am getting this error, trace follows;

eM Client (6.0.20899.0)Windows: Microsoft Windows NT 6.2.9200.0, Framework: 4.0.30319.34014
The following error has occurred:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Microsoft.Xna.Framework.LzxDecoder.ReadLengths(Byte[] lens, UInt32 first, UInt32 last, BitBuffer bitbuf)
   at Microsoft.Xna.Framework.LzxDecoder.Decompress(Stream inData, Int32 inLen, Stream outData, Int32 outLen)
   at MailClient.Protocols.OfflineAddressBook.OabFolderSynchronizer.UncompressLzx(Stream fullFile, Stream outputFile)
   at MailClient.Protocols.OfflineAddressBook.OabFolderSynchronizer.GetFolderList(Folder homeFolder, CancellationToken cancellationToken)
   at MailClient.Protocols.Common.FolderSynchronizer.<>c__DisplayClass5.b__0(WorkerStatus status, CancellationToken cancellationToken)
at MailClient.Protocols.OfflineAddressBook.OabGenericCommand.Execute(WorkerStatus status)
at MailClient.Commands.Command.Process(WorkerStatus status)
at MailClient.Commands.SynchronizationQueue.ThreadWorker(Object threadData)
at System.Threading.ThreadHelper.ThreadStart_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)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)


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

eM Client
6.0.20899.0

false

Microsoft Windows NT 6.2.9200.0
4.0.30319.34014


System.IndexOutOfRangeException
Index was outside the bounds of the array.
MailClient




MailClient.exe
100668804
MailClient
Microsoft.Xna.Framework.LzxDecoder
ReadLengths


mscorlib
System.Byte[]
lens


mscorlib
System.UInt32
first


mscorlib
System.UInt32
last


MailClient
Microsoft.Xna.Framework.LzxDecoder+BitBuffer
bitbuf



0
1e3




MailClient.exe
100668802
MailClient
Microsoft.Xna.Framework.LzxDecoder
Decompress


mscorlib
System.IO.Stream
inData


mscorlib
System.Int32
inLen


mscorlib
System.IO.Stream
outData


mscorlib
System.Int32
outLen



1cf
20b




MailClient.exe
100668768
MailClient
MailClient.Protocols.OfflineAddressBook.OabFolderSynchronizer
UncompressLzx


mscorlib
System.IO.Stream
fullFile


mscorlib
System.IO.Stream
outputFile



98
163




MailClient.exe
100668769
MailClient
MailClient.Protocols.OfflineAddressBook.OabFolderSynchronizer
GetFolderList


MailClient
MailClient.Storage.Application.Folder
homeFolder


MailClient
System.Threading.CancellationToken
cancellationToken



516
a9f




MailClient.exe
100697505
MailClient
MailClient.Protocols.Common.FolderSynchronizer+<>c DisplayClass5
<EnqueueGetFolderList>b
0


MailClient
MailClient.Commands.WorkerStatus
status


MailClient
System.Threading.CancellationToken
cancellationToken



1e
6e




MailClient.exe
100668762
MailClient
MailClient.Protocols.OfflineAddressBook.OabGenericCommand
Execute


MailClient
MailClient.Commands.WorkerStatus
status



4f
10c




MailClient.exe
100664007
MailClient
MailClient.Commands.Command
Process


MailClient
MailClient.Commands.WorkerStatus
status



15
53




MailClient.exe
100664057
MailClient
MailClient.Commands.SynchronizationQueue
ThreadWorker


mscorlib
System.Object
threadData



8c
11a




mscorlib.dll
100669370
mscorlib
System.Threading.ThreadHelper
ThreadStart_Context


mscorlib
System.Object
state



25
9b




mscorlib.dll
100668987
mscorlib
System.Threading.ExecutionContext
RunInternal


mscorlib
System.Threading.ExecutionContext
executionContext


mscorlib
System.Threading.ContextCallback
callback


mscorlib
System.Object
state


mscorlib
System.Boolean
preserveSyncCtx



70
a6




mscorlib.dll
100668986
mscorlib
System.Threading.ExecutionContext
Run


mscorlib
System.Threading.ExecutionContext
executionContext


mscorlib
System.Threading.ContextCallback
callback


mscorlib
System.Object
state


mscorlib
System.Boolean
preserveSyncCtx



0
15




mscorlib.dll
100668985
mscorlib
System.Threading.ExecutionContext
Run


mscorlib
System.Threading.ExecutionContext
executionContext


mscorlib
System.Threading.ContextCallback
callback


mscorlib
System.Object
state



2b
40




mscorlib.dll
100669367
mscorlib
System.Threading.ThreadHelper
ThreadStart


mscorlib
System.Object
obj



f
4d






MailClient.exe
C:\Program Files (x86)\eM Client\MailClient.exe
MailClient.exe
MailClient.exe
6.0.20899.0
eM Client
eM Client
6.0.20899.0
False
False
False
False
False
Language Neutral


ntdll.dll
C:\WINDOWS\SYSTEM32\ntdll.dll
ntdll.dll
ntdll.dll.mui
6.3.9600.17031 (winblue_gdr.140221-1952)
NT Layer DLL
Microsoft® Windows® Operating System
6.3.9600.17031
False
False
False
False
False
English (United States)


MSCOREE.DLL
C:\WINDOWS\SYSTEM32\MSCOREE.DLL
mscoree.dll
mscoree.dll
6.3.9600.16384 (winblue_rtm.130821-1623)
Microsoft .NET Runtime Execution Engine
Microsoft® Windows® Operating System
6.3.9600.16384
False
False
False
False
False
English (United States)


KERNEL32.dll
C:\WINDOWS\SYSTEM32\KERNEL32.dll
kernel32
kernel32
6.3.9600.17031 (winblue_gdr.140221-1952)
Windows NT BASE API Client DLL
Microsoft® Windows® Operating System
6.3.9600.17031
False
False
False
False
False
English (United Kingdom)


KERNELBASE.dll
C:\WINDOWS\SYSTEM32\KERNELBASE.dll
Kernelbase.dll
Kernelbase.dll.mui
6.3.9600.17031 (winblue_gdr.140221-1952)
Windows NT BASE API Client DLL
Microsoft® Windows® Operating System
6.3.9600.17031
False
False
False
False
False
English (United Kingdom)


ADVAPI32.dll
C:\WINDOWS\SYSTEM32\ADVAPI32.dll
advapi32.dll
advapi32.dll.mui
6.3.9600.16384 (winblue_rtm.130821-1623)
Advanced Windows 32 Base API
Microsoft® Windows® Operating System
6.3.9600.16384
False
False
False
False
False
English (United States)


msvcrt.dll
C:\WINDOWS\SYSTEM32\msvcrt.dll
msvcrt.dll
msvcrt.dll
7.0.9600.16384 (winblue_rtm.130821-1623)
Windows NT CRT DLL
Microsoft® Windows® Operating System
7.0.9600.16384
False
False
False
False
False
English (United States)


sechost.dll
C:\WINDOWS\SYSTEM32\sechost.dll
sechost.dll
sechost.dll.mui
6.3.9600.16384 (winblue_rtm.130821-1623)
Host for SCM/SDDL/LSA Lookup APIs
Microsoft® Windows® Operating System
6.3.9600.16384
False
False
False
False
False
English (United States)


RPCRT4.dll
C:\WINDOWS\SYSTEM32\RPCRT4.dll
rpcrt4.dll
rpcrt4.dll.mui
6.3.9600.16384 (winblue_rtm.130821-1623)
Remote Procedure Call Runtime
Microsoft® Windows® Operating System
6.3.9600.16384
False
False
False
False
False
English (United States)


SspiCli.dll
C:\WINDOWS\SYSTEM32\SspiCli.dll
security.dll
security.dll
6.3.9600.16408 (winblue_gdr.130920-1803)
Security Support Provider Interface
Microsoft® Windows® Operating System
6.3.9600.16408
False
False
False
False
False
English (United States)


CRYPTBASE.dll
C:\WINDOWS\SYSTEM32\CRYPTBASE.dll
cryptbase.dll
cryptbase.dll
6.3.9600.16384 (winblue_rtm.130821-1623)
Base cryptographic API DLL
Microsoft® Windows® Operating System
6.3.9600.16384
False
False
False
False
False
English (United States)


bcryptPrimitives.dll
C:\WINDOWS\SYSTEM32\bcryptPrimitives.dll
bcryptprimitives.dll
bcryptprimitives.dll
6.3.9600.17120 (winblue_gdr.140509-1516)
Windows Cryptographic Primitives Library
Microsoft® Windows® Operating System
6.3.9600.17120
False
False
False
False
False
English (United States)


mscoreei.dll
C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll
mscoreei.dll
mscoreei.dll
4.0.30319.34014 built by: FX45W81RTMGDR
Microsoft .NET Runtime Execution Engine
Microsoft® .NET Framework
4.0.30319.34014
False
False
False
True
False
English (United States)


SHLWAPI.dll
C:\WINDOWS\SYSTEM32\SHLWAPI.dll
SHLWAPI
SHLWAPI.DLL.MUI
6.3.9600.16384 (winblue_rtm.130821-1623)
Shell Light-weight Utility Library
Microsoft® Windows® Operating System
6.3.9600.16384
False
False
False
False
False
English (United Kingdom)


combase.dll
C:\WINDOWS\SYSTEM32\combase.dll
COMBASE.DLL
COMBASE.DLL.MUI
6.3.9600.16384 (winblue_rtm.130821-1623)
Microsoft COM for Windows
Microsoft® Windows® Operating System
6.3.9600.16384
False
False
False
False
False
English (United States)


USER32.dll
C:\WINDOWS\SYSTEM32\USER32.dll
user32
user32
6.3.9600.16384 (winblue_rtm.130821-1623)
Multi-User Windows USER API Client DLL
Microsoft® Windows® Operating System
6.3.9600.16384
False
False
False
False
False
English (United Kingdom)


GDI32.dll
C:\WINDOWS\SYSTEM32\GDI32.dll
gdi32
gdi32
6.3.9600.17246 (winblue_gdr.140801-1518)
GDI Client DLL
Microsoft® Windows® Operating System
6.3.9600.17246
False
False
False
False
False
English (United States)


IMM32.DLL
C:\WINDOWS\system32\IMM32.DLL
imm32
imm32
6.3.9600.17031 (winblue_gdr.140221-1952)
Multi-User Windows IMM32 API Client DLL
Microsoft® Windows® Operating System
6.3.9600.17031
False
False
False
False
False
English (United States)


MSCTF.dll
C:\WINDOWS\SYSTEM32\MSCTF.dll
MSCTF
MSCTF.DLL.MUI
6.3.9600.16384 (winblue_rtm.130821-1623)
MSCTF Server DLL
Microsoft® Windows® Operating System
6.3.9600.16384
False
False
False
False
False
English (United Kingdom)


clr.dll
C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
clr.dll
clr.dll
4.0.30319.34014 built by: FX45W81RTMGDR
Microsoft .NET Runtime Common Language Runtime - WorkStation
Microsoft® .NET Framework
4.0.30319.34014
False
False
False
True
False
English (United States)


MSVCR120_CLR0400.dll
C:\WINDOWS\SYSTEM32\MSVCR120_CLR0400.dll
msvcr120_clr0400.dll
msvcr120_clr0400.dll
12.00.51670.34230 built by: FX452RTMGDR
Microsoft® C Runtime Library
Microsoft® Visual Studio® 12 CTP
12.00.51670.34230
False
False
False
False
False
English (United States)


mscorlib.ni.dll
C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\mscorlib\c90ef9a73ea0044641d31b19023aad61\mscorlib.ni.dll
mscorlib.dll
mscorlib.dll
4.0.30319.34014 built by: FX45W81RTMGDR
Microsoft Common Language Runtime Class Library
Microsoft® .NET Framework
4.0.30319.34014
False
False
False
True
False
English (United States)


ole32.dll
C:\WINDOWS\SYSTEM32\ole32.dll
OLE32.DLL
OLE32.DLL.MUI
6.3.9600.16384 (winblue_rtm.130821-1623)
Microsoft OLE for Windows
Microsoft® Windows® Operating System
6.3.9600.16384
False
False
False
False
False
English (United States)


kernel.appcore.dll
C:\WINDOWS\SYSTEM32\kernel.appcore.dll
kernel.appcore.dll
kernel.appcore.dll
6.3.9600.16384 (winblue_rtm.130821-1623)
AppModel API Host
Microsoft® Windows® Operating System
6.3.9600.16384
False
False
False
False
False
English (United States)


uxtheme.dll
C:\WINDOWS\system32\uxtheme.dll
UxTheme.dll
UxTheme.dll.mui
6.3.9600.16384 (winblue_rtm.130821-1623)
Microsoft UxTheme Library
Microsoft® Windows® Operating System
6.3.9600.16384
False
False
False
False
False
English (United Kingdom)


clrjit.dll
C:\Windows\Microsoft.NET\Framework\v4.0.30319\clrjit.dll
clrjit.dll
clrjit.dll
4.0.30319.34014 built by: FX45W81RTMGDR
Microsoft .NET Runtime Just-In-Time Compiler
Microsoft® .NET Framework
4.0.30319.34014
False
False
False
True
False
English (United States)


OLEAUT32.dll
C:\WINDOWS\SYSTEM32\OLEAUT32.dll
OLEAUT32.DLL

6.3.9600.16506


6.3.9600.16506
False
False
False
False
False
English (United States)


System.ni.dll
C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System\3028925cf331e81d2b55093a3f131bd5\System.ni.dll
System.dll
System.dll
4.0.30319.34003 built by: FX45W81RTMGDR
.NET Framework
Microsoft® .NET Framework
4.0.30319.34003
False
False
False
True
False
English (United States)


System.Drawing.ni.dll
C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System.Drawing\9e99d85dfa5a3de8e34fe912acf82021\System.Drawing.ni.dll
System.Drawing.dll
System.Drawing.dll
4.0.30319.33440 built by: FX45W81RTMREL
.NET Framework
Microsoft® .NET Framework
4.0.30319.33440
False
False
False
True
False
English (United States)


System.Windows.Forms.ni.dll
C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\cc272fa4bc8ae7c468e3c75a57ae3c72\System.Windows.Forms.ni.dll
System.Windows.Forms.dll
System.Windows.Forms.dll
4.0.30319.33440 built by: FX45W81RTMREL
.NET Framework
Microsoft® .NET Framework
4.0.30319.33440
False
False
False
True
False
English (United States)


CRYPTSP.dll
C:\WINDOWS\SYSTEM32\CRYPTSP.dll
cryptsp.dll
cryptsp.dll
6.3.9600.16384 (winblue_rtm.130821-1623)
Cryptographic Service Provider API
Microsoft® Windows® Operating System
6.3.9600.16384
False
False
False
False
False
English (United States)


rsaenh.dll
C:\WINDOWS\system32\rsaenh.dll
rsaenh.dll
rsaenh.dll.mui
6.3.9600.16384 (winblue_rtm.130821-1623)
Microsoft Enhanced Cryptographic Provider
Microsoft® Windows® Operating System
6.3.9600.16384
False
False
&l

Hi Danish, do you have .NET framework 4 installed on your computer, in it’s latest available version (4.5.2)?
Also, can you please try to install this update http://www.emclient.com/dist/v6.0.20968/setup.msi and check if the issue persists?

Thank you,
Paul.

Hi Paul,

Installed .NET 4.5.2 and the update in your link. 

em Client now working correctly.

However when I launched it this morning it said update was available, installed update and the problem came back, so i uninstalled and reinstalled from your link and it is working correctly again.

Thanks,
Danish.

Hi Danish, what version of eM client are you currently using then, do you remember what version did you previously update to?
This is the latest release that should contain all recent bug fixes regarding this situation, I believe it would be best to use this version:

http://www.emclient.com/dist/v6.0.21015/setup.msi

Hope everything works as expected now,
Paul.

Thanks.

I hope everything is working properly with the latest release, if you come across any other issues or questions, please let me know, I’ll be happy to help.

Thank you,
Paul.

Yes thanks, all is working now.

Hi again Danish, if you’re currently using the above posted version, please download this update that still contains some bug fixes regarding the issues you were having, http://www.emclient.com/dist/v6.0.21034/setup.msi (you might have already received this update).
Glad everything is working properly, please let us know if you come across any other issues or questions, we’ll be happy to help.

Thank you,
Paul.