Free Support Forum -

Cast error when saving an aspose file


We have a problem saving a Visio file.
The error message is:

System.InvalidCastException: ‘Unable to cast an object of type’ Aspose.Diagram.RelMoveTo ‘to type’ Aspose.Diagram.MoveTo ‘.’

I have attached the file concerned to this request.

Thank (410.9 KB)


In which file format you are saving the Diagram? Would you please share the information so that we can test and address the issue accordingly.

I want to save the file in HTML format


We were able to reproduce the issue in our environment while using Aspose.Diagram for .NET 20.6 and logged it as DIAGRAMNET-51868* in our issue tracking system. We will further look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the incovnenience.


We would like to share with you that your issue has been resolved in Aspose.Diagram for .NET 20.6.1 hotfix.

The issues you have found earlier (filed as DIAGRAMNET-51868) have been fixed in Aspose.Diagram for .NET 20.7.