Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 16th, 2004, 10:22 AM
Registered User
 
Join Date: Feb 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default File Uploading is Slow


Hello, I appreciate any light someone could show me on this. An asp.net application i run allows downloads and uploads of files. It runs on IIS6.0 / win2003 server web edition. The problem I have is that the performance of uploading a file (using HTML input box) is incredibly slow (I am getting 37.5kb/s) whereas when downloading from the server it runs very fast (over 200kb/s). As very large files are being transferred it makes it useless when file uploading is this slow.

The file download is done using the Response.WriteFile() method.

The file upload is done using the HtmlInputFile saveas method as below:

Protected WithEvents UploadedFile As HtmlInputFile
UploadedFile.PostedFile.SaveAs(Path.Combine(destDi r, fileName))

My question is, is there a performance issue using the above command - is there a faster method, or a configuration in the web.config file perhaps that could increase the speed?

Many thanks for any pointers.

Regards,

Doonbug

 
Old July 19th, 2004, 09:22 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

The more significant question is what kind of network connection are you dealing with here? That's where the problem is it sounds. I don't think that either of those methods are going to hurt your performance.
 
Old July 19th, 2004, 09:35 AM
Registered User
 
Join Date: Feb 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

We run a 2 mb leased line, but even internally the upload speed to the web server (IIS 6.0) is still only peaking at around 37Kb/s. Downloading from the same application I get maximum performance. Internally though it does go through a firewall and into the DMZ and back to the web server again, so I am checking the firewall for any bandwidth throttling configurations though have yet to see anything that might cause this. I think you're right though. I can't seem to think of any reason why a default settings in the web.config file or the 'html input file' method may hurt the performance.

 
Old July 20th, 2004, 10:23 AM
Registered User
 
Join Date: Feb 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

its ok - Ive found the prob in the firewall causing this. Nothing to do the the web app itself. Thanks for the help anyways Planoie






Similar Threads
Thread Thread Starter Forum Replies Last Post
using a #include virtual="file" is slow loading jtrifts Classic ASP Basics 5 April 3rd, 2008 07:12 AM
uploading a file MunishBhatia ASP.NET 2.0 Professional 4 May 30th, 2007 04:18 AM
Uploading File misskaos Classic ASP Basics 4 October 26th, 2006 02:56 PM
FIle Uploading nvenkat75@email.com Classic ASP Basics 3 February 23rd, 2004 12:32 PM
File uploading zabedin Classic ASP Basics 1 July 16th, 2003 08:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.