Insert Document on fly throw exception "Sequence contains no elements"

Nov 5, 2013 at 5:49 PM
I get this error "[InvalidOperationException: Sequence contains no elements]
System.Linq.Enumerable.Last(IEnumerable`1 source) +6095764
Novacode.DocX.merge_numbering(PackagePart remote_pp, PackagePart local_pp, XDocument remote_mainDoc, DocX remote) +4704
Novacode.DocX.InsertDocument(DocX remote_document) +3051

I create a list of docx document created in memory stream (not as file).
Then with each docx I try to insert in another docx to merger all documents but the method "InsertDocument" throw this exception.
Can anybody help me?