EasyXLS
http://forum.easyxls.com/

Upload XLS Restarts HttpApplication
http://forum.easyxls.com/viewtopic.php?f=4&t=1253
Page 1 of 1

Author:  dzyann [ Fri Aug 07, 2009 4:11 pm ]
Post subject:  Upload XLS Restarts HttpApplication

Hi,
I am having a problem when using the EasyXLS control.
I have this code:

Code:
public DataSet GetExcelData(byte[] xlsStream)
        {
            ExcelDocument xls = new ExcelDocument();
            DataSet ds = new DataSet();

            var str = new MemoryStream(xlsStream);
            str.Position = 0;

            //Load the excel into the DataSet
            if ((xls.easy_LoadXLSXFile(str)) || (xls.easy_LoadXLSFile(new MemoryStream(xlsStream))))
            {
                for (int row = 0; row <xls> 1)
                            tempDS.Tables[0].Rows.RemoveAt(0);

                        //Unify all the data into the same dataset.
                        ds.Merge(tempDS);
                    }
                }               
            }
            else
            {
                return null;
            }

            return ds;
        }


After running this method the Application_end of the Global.asax is excecuted.
Seems that is finalizing the HttpApplication, wich produces it to restart in the next request.
This creates a huge overflow in the system.

I would appreciate any help.

Regards.-

Page 1 of 1 All times are UTC - 4 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/