Free Support Forum -

NullReferenceException on Save

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, 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, 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?


<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for reporting this problem to us. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

Best regards,

The issues you have found earlier (filed as WORDSNET-4568) have been fixed in this .NET update and in this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.