Click here to Skip to main content
15,901,982 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an ASP.NET 2.0 Web application running on IIS 6.0 Windows 2003 SP2.

In the application is a page where users can get data delivered by point and click in Excel Sheets. The excel sheet is create with OLEDB an the code is in an includede dll file made in Vb.

The problem is when its a very large dataset, there is no data in the excel sheet, excepts for the headlines.

The code works fine in the development enviroment. And long as the excel sheet don't getting bigger than 672Kb.

I have also made an little windows application for a small test, and there was no problem with creating an excel sheet with a huge amount of data an place it in the same directory on the server.

And there is no problems with uploading or downloading large files.

So the problem may some kind of limitation when the process is running in the context of the IIS.

Is there anybody who have any idea what the problem might be?

Regards
Posted
Comments
Wild-Programmer 13-Dec-10 2:35am    
Which version of Excel are you using? MS Office 2000 had a limitation of only 65535 rows. MS Office 2007 breaks this barrier.

It is created as Excel 2007. And when the application runs in the development enviroment, there is no problems with large files or many rows.
 
Share this answer
 
 
Share this answer
 
this may be happen because of Amount of data to traveled in one request
because iis 6 can have the limitations i have just an idea
that can be cause of that
 
Share this answer
 
You can take another approach....as you are using web application its strongly recommended that if a process is resource hungry or consumes a great amount of resource then process it asynchronously. So when the user clicks on the page maintain a queue in DB or MSMQ, Create a Windows Service that reads the queue and generates the excel files asynchronously, after that create a track of the processed messages so that you can inform the user whether their request has been processed or not.
 
Share this answer
 
Sorry can't read experts exchange, I'm not member :(
 
Share this answer
 
Comments
Toniyo Jackson 13-Dec-10 2:54am    
Don't write your comments here. You have add comment button below all answers. so write your comments below the appropriate answer.
kgn_100@hotmail.com 13-Dec-10 3:38am    
Ohh... Sorry. I'm new to this so I havent seen that... But thanks, I'll rember that in the future.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900