Aug 9, 2012 at 9:50 AM
Edited Aug 9, 2012 at 9:51 AM
I have downloaded the latest code(changeset - 76998) which seems to have apply template issue fixed.But when i run the unit tests associated with the download,the test method for ApplyTemplate fails.
The Error Message that i get is :
Test method UnitTests.UnitTest1.Test_Document_ApplyTemplate threw exception: System.InvalidOperationException: Cannot access part because parent package was closed.
Error Stack Trace :
System.IO.Packaging.PackagePart.ThrowIfParentContainerClosed()System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)Novacode.DocX.Save() in DocX-76998\DocX\DocX.cs: line 3071UnitTests.UnitTest1.Test_Document_ApplyTemplate() in
DocX-76998\UnitTests\UnitTest1.cs: line 1244