Free Support Forum - aspose.com

dotNet Fails to open ODT produced by Google Docs

Hi,

I’ve encounter a problem when trying to open a ODT document with Aspose.Words(17.7.0.0, 18.1.0.0) using dotNet.

The following stack trace is produced.
{System.InvalidCastException: Unable to cast object of type ‘System.Char’ to type ‘System.String’.
at Aspose.Words.Document.(Stream , LoadOptions )
at Aspose.Words.Document.(Stream , LoadOptions )
at Aspose.Words.Document…ctor(Stream stream, LoadOptions loadOptions)
at Aspose.Words.Document…ctor(Stream stream)

The following code was used to produce the error.
var doc = new Document(fileLocation);

This doesn’t seem to happen with every type of ODT, I’ve attached one that produces that problem.

Link to ODT File

@bevenson,

We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-16408. Our product team will further look into the details of this problem and we will keep you updated on the status of correction. We apologize for your inconvenience.

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