Forums Bugs & issues Unexpected Error message, cant open files Reply To: Unexpected Error message, cant open files

#3673 Reply

Andy

Version 2.1.1399.0

———– Exception at 2016-07-05 15:04:29Z ———–
System.ArgumentException: Source array was not long enough. Check srcIndex and length, and the array’s lower bounds.
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at Axantum.AxCrypt.Core.Header.V2AsymmetricKeyWrapHeaderBlock.Crypto(Int64 keyStreamOffset)
at Axantum.AxCrypt.Core.V2AxCryptDocument.Load(IAsymmetricPrivateKey privateKey, Guid cryptoId, Headers headers)
at Axantum.AxCrypt.Core.AxCryptFactory.CreateDocument(IEnumerable`1 decryptionParameters, Stream inputStream)
at Axantum.AxCrypt.Core.AxCryptFactory.FindDecryptionParameter(IEnumerable`1 decryptionParameters, IDataStore encryptedFileInfo)
at Axantum.AxCrypt.Core.Extensions.DataStoreExtensions.TryFindPassphrase(IDataStore fileInfo, Guid& cryptoId)
at Axantum.AxCrypt.Core.UI.FileOperationsController.TryFindDecryptionKey(IDataStore fileInfo, FileOperationEventArgs e)
at Axantum.AxCrypt.Core.UI.FileOperationsController.<OpenAxCryptDocumentAsync>d__49.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Axantum.AxCrypt.Core.UI.FileOperationsController.<DecryptAndLaunchPreparationAsync>d__44.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Axantum.AxCrypt.Core.UI.FileOperationsController.<RunSequentiallyAsync>d__53.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Axantum.AxCrypt.Core.UI.FileOperationsController.<DoFileAsync>d__52.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Axantum.AxCrypt.Core.UI.FileOperationsController.<DecryptAndLaunchAsync>d__35.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Axantum.AxCrypt.Core.UI.ViewModel.FileOperationViewModel.<OpenEncryptedWorkAsync>d__67.MoveNext()