Free Support Forum -

Load RTF file error

I'm using Aspose.Words for .NET 10.4.0 and when I try to open the rtf file in attachment I have the following exception

Aspose.Words.FileCorruptedException: The document appears to be corrupted and cannot be loaded. ---> System.ArgumentException: The argument cannot be null or empty string.
Parameter name: name
at x6c95d9cf46ff5f25.x0d299f323d241756.x48501aec8e48c869(String xbcea506a33cf9111, String xae050273e3024171)
at x1495530f35d79681.x2a19dee8776aaa44.x5d14aa99881b11fb(String xc15bd84e01929885, StyleCollection x3fa6ecdd18b2ff6e, Boolean x5409eeb7bc334110, Style x44ecfea61c937b8e)
at x2182451cabb5c30d.xa643f5c4a202fda5.x81682464c0c4247a(String xc15bd84e01929885, String[] x4bb79322d6f07955)
at x2182451cabb5c30d.xa643f5c4a202fda5.xbd6083b329527c4e(x03f56b37a0050a82 x153c99a852375422)
at x2182451cabb5c30d.x66a12b1255ab95ec.xa339c5b92e70ca48()
at x2182451cabb5c30d.x66a12b1255ab95ec.x72119ad95258918e(x03f56b37a0050a82 x153c99a852375422)
at x2182451cabb5c30d.x66a12b1255ab95ec.xa2d8e36cb99ac0f4(x03f56b37a0050a82 x153c99a852375422)
at x2182451cabb5c30d.x66a12b1255ab95ec.x06b0e25aa6ad68a9()
at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
--- End of inner exception stack trace ---
at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
at Aspose.Words.Document.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
at Aspose.Words.Document..ctor(Stream stream, LoadOptions loadOptions)
at Aspose.Words.Document..ctor(Stream stream)

I noticed that the rtf contains annotations, are they supported from Aspose.Words?

Thank you in advance


Thanks for your request. I managed to reproduce this problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is fixed.

As I can see even MS Word shows error message “This is not a valid style name” upon opening this document.

As a workaround of this problem, you can try open/save your RTF document using MS Word and then process using Aspose.Words.

Best regards,

I cannot open the rtf in MSWord because this operation is performed on server side and MSWord is not installed there. Moreover this operation is performed on thousands of documents.

Could you give me more information about when the issue will be fixed?

Best Regards


Thanks for your request. At the moment this issue is pending for analysis. The responsible developer will analyze the issue and we will be able to provide you an estimate.

Best regards,

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

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