1
Vote

NullReferenceException

description

I use the following codes to open an Excel file and meet the NullReferenceException.
Is anyone know how to solve it? Sample data is attached.
 
string path = "E:\test.xlsx";
 
using (ExcelDocument doc = ExcelDocument.Open(path, true)) //<--- Meet error here
{
...
}

comments