I am using excel Library to open a spread Sheet and read its contents, I am using this library over the interop library as the interop library causes issues on the server machine i hope to host on.
https://code.google.com/p/excellibrary/
using ExcelLibrary.SpreadSheet;
Stream fileStream = System.IO.File.OpenRead(excelFileName); //FilePath
Workbook book = Workbook.Load(fileStream); //Exception thrown
Worksheet sheet = book.Worksheets[0];
When running the code, you can see the file stream load:
When i step to next line i get the exception. Buffer cannot be null.
After the exception the stream reader becomes canRead false: