Encountered ApplicationException Occured "Invalid file format" exception
Code Details:
// Step:1 load the log file
private static String logFilePath =Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "XYZ", "ABC", "Log") + "\\log.xls";
C1XLBook logBook = new C1XLBook();
logBook.Load(logFilePath);
XLSheet logSheet = logBook.Sheets[0];
Exception stacktrace
at C1.C1Excel.C1XLBook.(String msg, Boolean badArgument)
at C1.C1Excel.C1XLBook.(String msg)
at C1.C1Excel.C1XLBook.(String fileName, Boolean fillSheets)
at C1.C1Excel.C1XLBook.Load(String fileName, FileFormat format, Boolean fillSheets)
at C1.C1Excel.C1XLBook.Load(String fileName)
Getting exception on this line
XLSheet logSheet = logBook.Sheets[0];