Click here to Skip to main content
15,913,944 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I can upload 22 mb excel file in asp.net by using sqlbluk method But
when i upload 40 mb file it is not uploaded in database and also i did not get any error.

I have also included the tag in web config to increase the file uploading size in my
application. But it is not working.

suggest me the maximum size of excel file which i can upload in asp.net application
and what is the best way to do this.

The change i had done in web config is given below for your reference

HTML
<httpruntime maxrequestlength="2097151" executiontimeout="36000" />
Posted

Hey! have a look there-[Large file uploads in ASP.NET][^]
from reference :-
XML
<location path="Upload">
    <system.web>
        <httpRuntime executionTimeout="110" maxRequestLength="20000" />
    </system.web>
</location>


and even better to opt below option
A custom HttpHandler can provide a better user experience by displaying upload progress and allowing you to handle a file size problem in a more controlled fashion. Here's a summary from a cursory search:
FileUploader.NET[^]

you can take a look Same suggestion also there-[How to Upload Large Files in ASP.NET][^]
 
Share this answer
 
v2
Large file uploads in ASP.NET[^] discusses some approaches for large files.
 
Share this answer
 

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