If I try to open a corrupt file, it goes into infinite loop, and then OutOfMemoryException. The only way is to kill the process.
```
FileStream stream = File.Open("c:\\temp\\corrupt.xls", FileMode.Open, FileAccess.Read);
IExcelDataReader excelReader = ExcelReaderFactory.CreateBinaryReader(stream);
```
2nd line will go into infinite loop.
corrupt.xls is attached.
Appreciated any help. Please let me know if need more information. Thanks.
Comments: ** Comment from web user: sholle **
```
FileStream stream = File.Open("c:\\temp\\corrupt.xls", FileMode.Open, FileAccess.Read);
IExcelDataReader excelReader = ExcelReaderFactory.CreateBinaryReader(stream);
```
2nd line will go into infinite loop.
corrupt.xls is attached.
Appreciated any help. Please let me know if need more information. Thanks.
Comments: ** Comment from web user: sholle **
Curious, why do you want to try to open a corrupt file? Excel has some repair options and that is where I would recommend repairing a corrupt file. When I try to open the file in excel I get the message "The document is corrupt and cannot be opened. To try and repair it, use the Open and Repair command in the Open dialog box and select Extract Data when prompted."