I am getting the following error when attempting to
make a call to LoadFromFile using the attached file (attached doc file would not upload due to the following error -
The extension doc is not allowed.
The upload was rejected because the uploaded file was identified as a possible attack vector.)
spireDoc.LoadFromFile(fileTemplate, FileFormat.Doc);
at dc..ctor(String A_0, STGM A_1)
at h8.f(String A_0)
at h8..ctor(String A_0, Boolean A_1)
at hs..ctor(String A_0)
at Spire.Doc.Document.LoadFromFile(String fileName)
at Spire.Doc.Document.LoadFromFile(String fileName, FileFormat fileFormat, String password)
at Spire.Doc.Document.LoadFromFile(String fileName, FileFormat fileFormat)
at WordDOCTemplateMacroTranslator.MacroTranslator.BuildCustomerLetter(String fileTemplate) in D:\Development\WC2WordCorrespondenceCreatorTestHarness\WordDOCTemplateMacroTranslator\MacroTranslator.cs:line 34
at WC2WordCorrespondenceCreatorTestHarness.Form1.btnGeneratePDF_Click(Object sender, EventArgs e) in D:\Development\WC2WordCorrespondenceCreatorTestHarness\WC2WordCorrespondenceCreatorTestHarness\Form1.cs:line 44