We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Error while saving vsdx file as html


With Aspose version 20.8, when I save the input_File.vsdx (in the zip file), there is an error.


input_File.zip (629.2 KB)


We tested the scenario using Aspose.Diagram for .NET 20.8 and noticed following Exception:

System.NullReferenceException: 'Object reference not set to an instance of an object.'
   at  .(Object )
   at  .()
   at  .(Object , UInt32 )
   at  . (Boolean )
   at  .(Object[] , Type[] , Type[] , Object[] )
   at Aspose.Diagram.Diagram.Save(String filename, SaveFileFormat format)
   at Aspose.Pdf.Examples.CSharp.AsposePDF.Annotations.Test.VisioToHtml(String dataDir) in G:\D Drive\Recent Working\Aspose\Aspose.Pdf-for-.NET-master\Examples\CSharp\AsposePDF\Annotations\Test.cs:line 5591
   at Aspose.Pdf.Examples.CSharp.AsposePDF.Annotations.Test.Run() in G:\D Drive\Recent Working\Aspose\Aspose.Pdf-for-.NET-master\Examples\CSharp\AsposePDF\Annotations\Test.cs:line 612
   at Aspose.Pdf.Examples.CSharp.RunExamples.Main() in G:\D Drive\Recent Working\Aspose\Aspose.Pdf-for-.NET-master\Examples\CSharp\RunExamples.cs:line 162

We have logged an issue as DIAGRAMNET-51911 in our issue tracking system for the sake of correction. We will look into its details and keep you informed with its rectification status. Please be patient and spare us some time.

We are sorry for the inconvenience.


With version 22.11 I still reproduce the incident.

Can you look ?



Have you tried converting your file using MS Visio as well? Is it converted successfully? Can you please share your sample file and code snippet for reference so that we can further proceed accordingly.