NullReferenceException during Saving


A customer gets the following exception (excerpt from the stack trace):

System.NullReferenceException: Object reference not set to an instance of an object.

at ?.?.?(? ?, ? ?)
at ?.?.?(? ?, ? ?)
at ?.?.?()
at ?.?.?(? ?)
at ?.?.?(? ?, Stream ?)
at Aspose.Word.Document.Save(Stream stream, SaveFormat fileFormat)
at Bodycote.BodySales.Runtime.Code.DBObjects.QuotationWordGenerator.GenerateWordDocument() in C:\Inetpub\wwwroot\Bodycote\BodySales\Runtime\Code\DBObjects\QuotationWordGenerator.cs:line 197

I havent looked in detail at the context of my code, but what bothers me is that

a) It is an ASP.NET application that worked for all other users with the same data.
b) Those many questionsmarks “?” at the stack trace. I have never seen something like that.

I am using version of Aspose.Word.

Question: Any idea about the questionsmarks “?” in the stack trace and the NullReferenceException?



Hi Uwe,

Such the issue was recently reported, please see here:

We will try to fix it in the next release.

The question marks seem to be related to the obfuscation.

Btw, you should download the latest Aspose.Word version just to avoid other possible issues.