When i'm trying to SaveAs after Save it throws an exception, becouse the package is disposed.
I'm seeing that at source code in save method. I think is the issue.
if (Stream is MemoryStream)
var fi = new FileStream(File.FullName, FileMode.Create);
byte file = ((MemoryStream)Stream).ToArray();
EncryptedPackageHandler eph = new EncryptedPackageHandler();
var ms = eph.EncryptPackage(file, Encryption);
fi.Write(ms.GetBuffer(), 0, (int)ms.Length);
fi.Write(((MemoryStream)Stream).GetBuffer(), 0, (int)Stream.Length);
How can i do it?
PD: that's not my release. I have the last one.