Free Support Forum - aspose.com

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

<!–[if gte mso 9]>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:HyphenationZone>21</w:HyphenationZone>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>FR</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
<m:mathPr>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:dispDef/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
</m:mathPr></w:WordDocument>
<![endif]–>

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)

<span style=“font-size:11.0pt;font-family:“Calibri”,sans-serif;mso-fareast-font-family:
Calibri;mso-fareast-theme-font:minor-latin;mso-bidi-font-family:“Times New Roman”;
mso-ansi-language:FR;mso-fareast-language:EN-US;mso-bidi-language:AR-SA”>
à 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.