Free Support Forum -

Wrong file format detection


Seems like your API (version 21.4) doesn’t detect load formats correctly. As said in documentation (, both VSS and VST formats could be loaded. Here is my code:

string input = @"C:\input.vst";
//string input = @"C:\input.vss";

using (FileStream fs = new FileStream(input, FileMode.Open, FileAccess.Read))
    Console.WriteLine("File name: " + fs.Name);

    Aspose.Diagram.FileFormatInfo diagramFileFormatInfo = Aspose.Diagram.FileFormatUtil.DetectFileFormat(fs);
    Console.WriteLine("Load format: " + diagramFileFormatInfo.LoadFormat);
    Console.WriteLine("File format type: " + diagramFileFormatInfo.FileFormatType + "\n");

As you can see both these files are being detected like vsd (check attached screenshot).
Vss and vst files are aslso attached to this topic.


image.png (1.5 KB) (201.5 KB)


We have logged an issue as DIAGRAMNET-52022 in our issue tracking system for this case. We will further investigate the issue in details and keep you posted with the status of ticket resolution. Please be patient and spare us some time.

We apologize for your inconvenience.


Thanks for reaction! I have found similar behaviour with *.vsx files. My input.vsx file (attached in archive) is detected as VDX file (please check attached screenshoot). (9.2 KB)
image.png (18.0 KB)


We have updated the ticket information accordingly and will surely investigate it accordingly. We will inform you once we have additional updates in this regard.

We apologize for the inconvenience.