Free Support Forum -

Unable to load visio file in aspose constructor

I am unable to load the following visio file in the aspose diagram.

Its throwing NullReferenceException.

Use this file as a constructor parameter of Diagram Class. It should throw you an error. I tried with latest stable version.

Let me know if you need any other information.

AWS n-tier Design (102.5 KB)


We loaded your file using following code snippet with Aspose.Diagarm for .NET 20.10 and were unable to notice any issue:

var d = new Aspose.Diagram.Diagram(dataDir + "AWS n-tier Design Pattern.vsdx");

Would you kindly share in which environment you are using the API e.g. OS Name and Version, etc. Please share a sample console application with us which is able to replicate the issue so that we can test again and address the issue accordingly.

ok, i checked again so actually in my case it was throwing error for different reason.
The reason is if you take a Shape and check the PinX or PinY value for the location then somehow the values are really too long. actually its going in exponentials.

If we have the same file in VDX format then in that case we are getting the value correct like 1.5 or 2.5 like this.

Can you give it a try with same file to see what value it is showing and why ?


Would you kindly share a sample code snippet as well. We will test the scenario accordingly and share our feedback with you.