Cannot Open File Excel File unless it's resaved

Error: Input string was not in a correct format

I’m trying to open an excel file .xlsx file but when I use:

var wb = new Workbook(filepath) or
var wb = new Workbook(stream)

it keeps coming back with an error Input string was not in a correct format. I have tried changing the extension of the file to .xls, .xlsm without any success. The only way it works is if I open the file in excel and do a save as to another file. Any ideas on what’s causing the issue?

Version: Asopose Cell 23.5

@tkurian
Would you like to provide your sample file and executable Console project? We will check it soon.