I have big excel files like 10K row and 17 column excel files. I try 500 row excel files with EEPlus and its read successfully. However, when I try big excel files i took this error.
Error Image: http://hizliresimyukle.com/images/2019/01/13/e1.jpg
Error Message: OfficeOpenXml.Packaging.Ionic.Zip.BadReadException: 'Could not read block - no data! (position 0x003C712B)'
Code:
string sWebRootFolder = _hostingEnvironment.WebRootPath;
string sFileName = fileName;
ImportClass imp = new ImportClass();
FileInfo file = new FileInfo(Path.Combine(sWebRootFolder, sFileName));
List<string> header = new List<string>();
using (ExcelPackage package = new ExcelPackage(file))
{
var worksheet = package.Workbook.Worksheets.FirstOrDefault();
int rowCount = worksheet.Dimension.Rows;
int ColCount = worksheet.Dimension.Columns;