using (var doc = DocumentFormat.OpenXml.Packaging.SpreadsheetDocument.Open(SavedFilePath, true))
{
.....
}To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+unsubscribe@googlegroups.com.
Govert
I am having the same issue as Gareth with lack of security evidence when using OpenXML on large Excel files. I get the IsolatedStorageException - "Unable to determine the identity of domain" when the file stream is being saved to disk. I was able to update the security evidence for the AppDomain as per Tim Lewis' suggested fix: http://stackoverflow.com/a/31118592/4009659 and my solution was working fine on my machine running in Visual Studio. However, the exception resurfaced when I tried to run my app from the packed XLL. I'm thinking it has something to do with the packed XLL. Rather than create a new AppDomain and assign evidence. I think it would be better to update the AppDomain being used by ExcelDNA and provide the required evidence. Please advise.