I'm trying to merge some fields in the attached document. Other documents work just fine, and have for years. But with this particular document I get the error "The argument cannot be null or empty string. Parameter name: value". The exception is thrown at the following line:
Document document = new Document(FileName.ToString());
Doesn't matter where the file is located on my file system, so it's some type of issue with the document itself. What's wrong with the document and how do I make it usable?
Stack Trace:
at Spire.Doc.Documents.SdtListItem..ctor(String displayText, String value)
at spr᳠.ᜀ(XmlReader A_0, SdtDropDownList A_1)
at spr᳠.ᜀ(XmlReader A_0, SDTProperties A_1)
at spr᳠.ᜁ(XmlReader A_0, StructureDocumentTagCell A_1, TableRow A_2)
at spr᳠.ᜂ(XmlReader A_0, TableRow A_1)
at spr᳠.ᜆ(XmlReader A_0, Table A_1)
at spr᳠.ᜎ(XmlReader A_0, IDocumentObject A_1)
at spr᳠.ᜍ(Stream A_0)
at spr᳠.ᜂ(sprᢌ A_0)
at spr᳠.ᜁ(Document A_0)
at spr᳠.ᜁ(Stream A_0, Document A_1)
at spr᳠.ᜀ(String A_0, Document A_1)
at Spire.Doc.Document.ᜐ(String A_0)
at Spire.Doc.Document.LoadFromFile(String fileName, FileFormat fileFormat, String password)
at Spire.Doc.Document.ᜀ(String A_0, String A_1)
at Spire.Doc.Document..ctor(String fileName)
at FormTemplates.ReadWordFileBookMarks(String FileName) in E:\FormTemplates.cs:line 171
at Admin_FormDocuments.ButtonInsert_Click(Object sender, EventArgs e) in E:\Visual Studio 2015\Projects\Admin