Author: AjarnMark | Posted on: 4/5/2010 8:11:42 PM | Views : 343

I have a WebForms page that is used to upload / import data from an Excel file.  Everything works fine until I test a certain size file, and then I can't even get to my Page_Init.  In my case, a file with 25,023 rows (4,187,648 bytes) will process fine, but a file with 25,024 rows (4,188,160 bytes) fails.
Note that the flow goes like this:  Page loads with an asp:FileUpload control and a button that causes a postback and would read the file.  I have a breakpoint set on the first line of my Page_init.  I try the first file, and everything works fine.  I hit the breakpoint twice (once on initial load and once on Postback) and the file is read and processed just fine.  With the bigger file, I hit the breakpoint on initial load of the page, but during the postback process, the page does not even get to the Page_Init routine before it fails (displays the generic "Internet Explorer cannot di ...

Go to the complete details ...