Convert DOC File to RTF using C# .NET | InvalidOperationException: a value for the specified key is missing and the default value is not provided

I’m using Aspose.Words 20.7 .NET. When saving the attached file as RTF I got “A value for the specified key is missing and the default value is not provided” exception

var document = new Aspose.Words.Document(inputFile);
document.Save(outputFile, Aspose.Words.SaveFormat.Rtf);

Please check it

sample.zip (46.2 KB)

@dunghnguyen,

While using the latest 20.8 version of Aspose.Words for .NET API, we managed to reproduce this issue on our end. We have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-20883. Your forum thread has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

1 Like

The issues you have found earlier (filed as WORDSNET-20883) have been fixed in this Aspose.Words for .NET 20.9 update and this Aspose.Words for Java 20.9 update.