Reply to topic  [ 1 post ] 
Upload XLS Restarts HttpApplication 
Author Message

Joined: Mon May 11, 2009 5:47 pm
Posts: 6
Reply with quote
Post 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.-


Fri Aug 07, 2009 4:11 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.