Null Reference

Hello,

We encounter a weird problem with aspose.words 15.6 for .NET (latest version)

In an ASP;NET Web application hosted on IIS 6 / W2003

  • create a brand new word document test.doc
  • open the doc then save it : OK
  • create a brand new word document test.docx
  • open the doc then save it : OK

In another ASP;NET Web application hosted on IIS 6 / W2003 (the same server as above)

  • create a brand new word document test.doc
  • open the doc then save it : FAIL (see log below)
  • create a brand new word document test.docx
  • open the doc then save it : OK

Error log

System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
à ????.?(Int32 ?, Object ?)
à ????.?(ShapeBase ?, ???? ?, ???? ?, Boolean ?)
à ????.?(ShapeBase ?, ???? ?)
à ????.?(ShapeBase ?, ???? ?)
à ????.?(???? ?, ?? ?)
à ????.?(BinaryWriter ?, BinaryWriter ?, Boolean ?)
à ????.?()
à ????.??()
à ????.????????(???? ?)
à Aspose.Words.Document.?(???? ?, SaveOptions ?)
à Aspose.Words.Document.?(Stream ?, String ?, SaveOptions ?)
à Aspose.Words.Document.Save(String fileName)
à Qualnet.TraitementDocument.TraitementDoc.LancerTraitementGED(Document doc,
Int32 idTransfo, Int32 iddoc, Int32 idthread, String idem, SqlPrepare
requestPrepare)

Any help very appreciated…

Regards.

Hi Stéphane,

Thanks for your inquiry. It would be great if you please share following detail for investigation purposes.

  • Please attach your input Word document for which you are facing this issue.
  • Please share the web application that demonstrates the code (Aspose.Words code) you used to generate your output document

Unfortunately, it is difficult to say what the problem is without the Document(s) and simplified application. We need your Document(s) and simple project to reproduce the problem. As soon as you get these pieces of information to us we’ll start our investigation into your issue.