I have a requirement to Upload a 10 GB File to FTP Server using asp.net. I tried in many ways. I couldn't get the solution for it. If i select a file of size > 2GB using asp.net file upload control, and when i click on the upload button, the page is rendering for a long time and not submitting to the server, getting the error "The Internet Page cannot be displayed".
I also tried in a way that i created a windows forms control library and place that dll on to web page. In the server( in which i have deployed the project) it is working fine. But when i connect the URL on other than the server, it is not working. it is throwing me the below error (When i Click on the Browse button).
Used the below Object tag to place the windows control on web page.
(<object id="objUploadCtrl" classid="http: CSIMFileUploadControl.dll# CSIMFileUploadControl. FtpUpload">
when i set the permissions in control panel -> Administrative tools -> .Microsoft.NET framwork 2.0 configuration tool -> My Computer -> Machine -> code Groups -> Trusted Zones -> Properties -> Permission Set -> Full trust, it is working fine out of the server. But Every user must do this setting. Because it is a internet based application, I cannot request all the users to do this setting before using it.. :)
Can anybody help me on this.
Can anybody help me on this.
vijay kumarPosted Jan 9, 2012, 6:27 AM
Thanks for your reply.. I read the below article sent by you. It is good. The thing is i don't know the implementation of it. can you please let me know what are the steps I have to perform to implement it. I have the FTP Server in where i have to upload the file.. Here my query is .NET File Upload control itself is not allowing me to upload the file of size > 2 GB. Can you please let me know how can i implement this solution in my web application..
Regards,
Vijay Kumar E.
http://www.webdavsystem.com/server/documentation/upload
Mukesh KumarPosted Jan 9, 2012, 6:15 AM
http://stackoverflow.com/questions/699488/file-upload-of-more-than-4gb/699512#699512
http://www.webdavsystem.com/server/documentation/upload
vijay kumarPosted Jan 9, 2012, 5:06 AM
the .net server will allow me to upload a file of size <= 2GB. My requirement is to upload a file which is of size > 2 GB. When i select a file using asp.net file upload or Html file upload controls, If i select a file of size more than 2 GB, The page is not submitting to the server. It is showing the error "The Internet Page Cannot be Displayed. When i increase the size in web.config file, I will get a compile time error Saying that maximum request length should be 0- 2097151. Please suggest me an other alternative to get this done..
Regards,
Vijay Kumar.
Mukesh KumarPosted Jan 9, 2012, 4:46 AM
In case of IIS 7.0, both integrated and classic mode:
<configuration>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483648"/>
requestFiltering>
security>
system.webServer>
configuration>
In case of IIS 5.1, 6.0:
<configuration>
<system.web>
<httpRuntime maxRequestLength="2097151" />
system.web>
configuration>