I’m doing some basic testing with Aspose.Words, and I have a document that I am unable to save. I consistently get a NullReferenceException on it. I’m using version 9.7.0.0, product version 2011.2.5.0. However, things seemed to be OK (aside from a separate issue with mail merging on this document) in version 9.5.0.0, product version 2010.10.31.0.
Here’s the code I’m using that fails on save (document is attached):
Dim basePath As String = Request.MapPath("~/")
Dim lic As New Aspose.Words.License
lic.SetLicense(basePath + "Aspose.Total.lic")
Dim doc As New Document(basePath + "document.docx")
doc.Save(basePath + "result.doc")
Can you provide some insight on what the issue might be?