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

Free Support Forum - aspose.com

Exception with GetNamedRanges


I am working with Aspose.cells.dll version I have the following exception when I work with the file in attachment.

Exception : System.Exception: error in set range name
at Aspose.Cells.Range.set_Name(String value)
at Aspose.Cells.Name.ౢ()
at Aspose.Cells.Names.ష(Worksheets ়)
at Aspose.Cells.Worksheets.GetNamedRanges()

Code :

.... Workbook workbook = new Workbook();
Range[] ranges = workbook.Worksheets.GetNamedRanges();

Please, can you fix this issue, it is very important for us.

Thank you,


Hi Gregory,

Since you are using some older version of Aspose.Cells. I tried your code using your template file with the latest version / fix ( attached and it works fine without any issue at all.

Kindly try the attached version.

Thank you.