Web Forms :: Can't Download Large Files From Internally Written Site
Feb 1, 2010
I've recently been given the task of diagnosing and fixing an internally written asp site that is used to transfer large files internally and externally.
The user uploads a file and enters the receivers email address. The receiver can then click on the link which takes them to the retrieval section of the site.
The issue is although we currently have an upload limit of 100MB set within the web.config file "maxRequestLength=102400", when a user uploads a file of more than 60MB although the upload works and the file is copied to the server when the receiver tries to access it the page simply displays "Internet Explorer cannot display this page".
The site works fine for files that are smaller than 60MB so I don't think it's a code issue, but I can't be 100% certain.
View 11 Replies
Similar Messages:
Jan 6, 2011
I need to create an upload site to upload large files over 2GB I want ot create a site like [URL]. Once these files get upload i want them to have a link to the file created but the link encrypted. I know there is a limit to http upload. I have used a bunch of the flash upload web apps but are capped at a specfic mb becuase of .net. What options are out there.
View 2 Replies
Feb 4, 2010
I have an asp.net web page to serve large file downloads to users.
The page is hosted on IIS7, Windows Server 2008.
The strange thing is that users can download at good speeds (2MB/s) when I don't add a content-length response header but as soon as I add this header, download speed drops to somewhere around 35kbps/s.
This is the code:
[code]...
Of course I can leave the content-length out but the user will not know how big the file is and how long the download will take...which is annoying.
View 1 Replies
May 5, 2010
I am running asp storefront version 9. I am creating a website that offers audio therapy to people. I want to make it so they have an option to preview a clip of the audio (maybe 30 secs). Then also have an option to pay for the audio file then download it from the site.
I am not sure of the best way to go about this. Right now I have each product set up as a generic product calling xml package .product.simpleproduct.xml.config.(I just set it up)
Is there a way to have the two options (preview or buy) for each product right on the product page?
View 1 Replies
Nov 28, 2010
When I have a HttpHandler class in C#/ASP.NET mapped to a file extension in IIS any file with that extension fails to download/display in web browsers (it's downloaded as a 0-byte file in some browsers and nothing at all in other browsers). After removing the application mapping for the HttpHandler in IIS so it doesn't call the IHttpHandler class in C#, the web browser downloads the file successfully.
This was tested with an IHttpHandler class in C# that has an empty ProcessRequest method.
View 2 Replies
Jan 24, 2011
We have a site and a logged in section of the site that all was written in classic asp. We are starting to convert the site pages to asp.net 3.5. We are starting with the easiest pages (text mainly) first then we will rewrite the web application part of the site.
My question is - Is it possible to run the new asp.net 3.5 pages with classic asp pages? Or will we need to rewrite everything before deploying?
View 1 Replies
Feb 8, 2010
how to download a large file with resume facility in asp.net.
View 1 Replies
Jan 14, 2011
I'm updating an old process that already exists, which works as follows:
The user submits a form which runs the following asp (simplified, names changed):
<%
set rb = Server.CreateObject("RecordBuilder.SomeObject")
rb.Calculate()
rb.StartProcess()
%>
The RecordBuilder.SomeObject was an old VB6 DLL, I don't have VB6, so I converted it to VB.NeT 4.0
The call to Calculate() works as expected, the call to StartProcess() fails.
StartProcess() is the following:
Public Function StartProcess()
Try
strProcess = "Starting process"
Dim proc = New Process()
proc.StartInfo.RedirectStandardOutput = True
proc.StartInfo.UseShellExecute = False
proc.StartInfo.CreateNoWindow = True
proc.StartInfo.FileName = "d:AppRecordProcessor.exe"
Dim procHandle = proc.Start()
strProcess = "Started process"
Catch ex As Exception
Err.Raise(vbObjectError + 9999, "RecordBuilder.SomeObject", strProcess & " failed: " & ex.Message & "<hr />Stack Trace:<br />" & ex.StackTrace)
End Try
End Function
This fails with the call to proc.Start(), however if I copy the test ASP to a .vbs file it will work as expected.
I have changed the permissions on d:AppRecordProcessor.exe to grant execute permission to the group Everyone.
View 1 Replies
May 22, 2010
When the customer presses a button to download a file, then a box come up on the screen asking the customer what he wants to do with the file, such as save or open.The entire filepath is written in this box. I would rather not have the file locations written out for all to see.Is it possible to modify the message in the box so that the entire filepath is not written out ?
View 4 Replies
Oct 26, 2010
I am unable to upload even 75MB file ... it seems MS for some good sake is putting a limit of the file. how can I overcome this issue.
View 12 Replies
May 14, 2010
I'm using a web form that allows users to upload media files. The code works great on small to medium size files, but I've found that if a file is really big(like bigger than 15MB), the user will get a 404 error. Currently I'm using the code below to handle the file. Does .NET provide another way to handle larger files?
[Code]....
View 6 Replies
Jun 1, 2010
I used this sample to work around the issue we were having with large files. [URL] Unfortunately, when I attempt to download large files of 30MBs or more, the download times out and the user gets a partial download. It doesn't seem to be a consistant percentage of the download either. I attempted to download a 50MB file and got to 33MB. When trying a 30MB file, I downloaded 24MB.Below is my code.
if (File.Exists(strFilePath))
{
fileName = System.IO.Path.GetFileName(strFilePath);
Response.Clear();
system.IO.Stream iStream = null;
byte[] buffer = new Byte[10000];
int length;
long dataToRead;
try
{
iStream = new System.IO.FileStream(strFilePath, System.IO.FileMode.Open,
System.IO.FileAccess.Read, System.IO.FileShare.Read);
dataToRead = iStream.Length;
//FileInfo file = new FileInfo(strFilePath);
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Length", iStream.Length.ToString());
Response.AddHeader("Content-Disposition", "attachment; filename=" + fileName.Replace(" ", string.Empty));
while (dataToRead > 0)
{
if (Response.IsClientConnected)
{
length = iStream.Read(buffer, 0, 10000);..................
View 3 Replies
Oct 18, 2010
We have a problem with some people working from home where when uploading 30-40mb (max upload is 50mb) they are timing out. Naturally when these people are on site they have no problems because of the network speed with have. What are peoples thoughts about extening the time out period, working on an 250k upload speed from home, we would be thinking about 20 to 30 mins.
View 3 Replies
Mar 18, 2010
I am trying to figure out a solution to upload large files under a web page. I know WCF + Streaming is a proper solution for large file transfers, but I am not sure how to get the WCF client implemented under ASP.NET. Here is the link: [URL] Besides, is there anyway I could implement a progress bar showing the upload progress while the file is being uploaded, and voiding page timeout?
View 11 Replies
Feb 9, 2010
I have a requirement to upload large files using dotnet using ftp. Any opensource programs available?
View 5 Replies
Apr 14, 2010
Iam looking a solution for uploading files with ftp. i need a asp.net script in vb for uploading large files upto 1 gb with ftp.
View 3 Replies
May 7, 2010
I have to large files in a database which users can download. The user clicks a link and the following code runs:
[Code]....
View 1 Replies
Sep 24, 2010
What is better way to large upload file. using a web service or in application itself. If in application, how can we check that files is to upload. actually i dont want user to wait for complete uploading, when it starts uploading user will get response of uploaded and uploading will be done in backgroud. I am not sure this type of task can be done in webservice also so that user doesnot need to wait for complete uploading. and one more query which event fires when the page redirects to another page. Is it Page_UnLoad or Dispose.
View 2 Replies
Dec 9, 2013
i want to check my fileuploas size . if bigger then 2mbm error message will popup, this is my some of my code
If file_newimage.HasFile = True Then
Dim ext As String
ext = System.IO.Path.GetExtension(file_newimage.FileName).ToString
If ext <> ".jpg" And ext <> ".png" And ext <> ".bmp" And ext <> ".jpeg" Then
MessageUser("Photo uploaded must be in .jpg/.png/.bmp/.gif or .jpeg format")
Else
If file_newimage.PostedFile.ContentLength > 2097000.0 Then
[Code]....
but when i input image 12MB, just to check my coding my page went "Page cant be displayed" ...
View 1 Replies
Aug 9, 2010
Is there a way of filtering large CSS files for the only required selectors on a page, and creating css files that contain just these selectors?
Case: I have a very large CSS file that I want to filter on a per page basis, so that the file size is cut down and can be cached by mobile devices. I was thinking along the lines of something like a server side dust me selectors tool.The particular project I am working on is using ASP.NET MVC.
View 1 Replies
Mar 16, 2010
I am developing a application similar to a forum. I want to attach documents in .doc and .PDF formats. I want to know how could i download these attachments and open directly in a browser without saving the downloaded document.
View 2 Replies
Apr 18, 2010
i m giving file link to be downloaded in navigateurl of hyperlink .
It works fine in my pc but doesnt works in my laptop.
Is there any browser setting to show open/save dialog box .
View 3 Replies
Jan 28, 2010
I developed a datagrid in my aspx page which was to show all the files present (with details) in a particular directory on my webserver. The column containing the name of the file in the datagrid is a hyperlink and when you click on it you could view or download the file.
Everything works great. When I click on the file name, it either opens up the file in browser or asks me to save it except the fact that when I click on a file name with extension .msg (outlook message file) it says - The Page Cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable..
The files are very well present there in the directory! Moreover, same everything was working absolutely fine (even the .msg messages) in my local system during the application development.
I dont know if sending the code makes sense in this situation - because code is correct and is working as it should be. It looks more of an issue with internet explorer or probably somerthing with Production web server configuration.
Anyways the code for aspx and .cs files are -
ASPX - PAGE CODE
<asp:DataGrid runat="server" id="articleList" Font-Name="Verdana"
View 2 Replies
Aug 20, 2012
i want upload zip and rar file to server and download it and audio and video file also.
View 1 Replies
Nov 18, 2013
I have some documents in a folder ..i am creating zip file using the following code..but i am not able to download it at client side.
Imports ICSharpCode.SharpZipLib.Zip
Imports ICSharpCode.SharpZipLib.Core
Public Function ByteArrayToFile(_FileName As String, _ByteArray As Byte()) As Boolean
Try
[code]....
View 1 Replies