When I try the sample code to split PSTs, for some PSTs I get an exception. I’ve attached a pst that will generate this error.
System.Collections.Generic.KeyNotFoundException was unhandled
HResult=-2146232969
Message=The given key was not present in the dictionary.
Source=mscorlib
StackTrace:
at System.Collections.Generic.Dictionary2.get_Item(TKey key) at Aspose.Email.Storage.Pst.PersonalStorage.#=zk7KvdWUGVy9w(FolderInfo #=z2vPL31BwVP65, #=zwUvA8Q9xRKFnT6B7CmwdYgVnEm7LG9PAtg==& #=zSJFlmDQ=, Dictionary
2 #=zeGHhmy8=)
at Aspose.Email.Storage.Pst.PersonalStorage.#=zjjilA$9142XP(FolderInfo #=zNR$UhOo4I4gi, #=zwUvA8Q9xRKFnT6B7CmwdYgVnEm7LG9PAtg==& #=zSJFlmDQ=, Dictionary2 #=zeGHhmy8=) at Aspose.Email.Storage.Pst.PersonalStorage.#=zk7KvdWUGVy9w(FolderInfo #=z2vPL31BwVP65, #=zwUvA8Q9xRKFnT6B7CmwdYgVnEm7LG9PAtg==& #=zSJFlmDQ=, Dictionary
2 #=zeGHhmy8=)
at Aspose.Email.Storage.Pst.PersonalStorage.#=zjjilA$9142XP(FolderInfo #=zNR$UhOo4I4gi, #=zwUvA8Q9xRKFnT6B7CmwdYgVnEm7LG9PAtg==& #=zSJFlmDQ=, Dictionary`2 #=zeGHhmy8=)
at Aspose.Email.Storage.Pst.PersonalStorage.SplitInto(Int64 chunkSize, String path)
at ConsoleApplication3.Program.Main(String[] args) in c:\users\gjanco\documents\visual studio 2015\Projects\ConsoleApplication3\ConsoleApplication3\Program.cs:line 18
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
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()
InnerException:
I am running the following code:
Aspose.Email.License license = new Aspose.Email.License();
license.SetLicense(@“D:\impt\aspose.lic”);
PersonalStorage pst = PersonalStorage.FromFile("D:\\TestFiles\\pst\\types.pst");
pst.SplitInto(3000000, "D:\\TestFiles\\split");