SunQuest
 
           ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old April 8th, 2008, 12:05 AM
rcw823 rcw823 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 4 rcw823 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 31 sec
Reputation Power: 0
Performance issue encountered in ASPSmartUpload

Hi,

I have a small piece of code that uploads a file from the client to the server using ASPSmartUpload. In IE 6.0 there is no problem, however, it seems that when the same file is uploaded using IE 5.5, the upload takes longer. Does anyone have an idea on how to resolve this issue?

Thanks!

Raymond

Reply With Quote
  #2  
Old April 8th, 2008, 12:36 PM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 24 m 44 sec
Reputation Power: 7
It may be a database issue, if so, then pretty much there's not much you can do about that.

If it's not a database issue, give me an estimate on the time it takes using IE5.5 vs IE6!
__________________
Apache Expert

Reply With Quote
  #3  
Old April 9th, 2008, 02:52 AM
rcw823 rcw823 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 4 rcw823 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 31 sec
Reputation Power: 0
Quote:
Originally Posted by infamous-online
It may be a database issue, if so, then pretty much there's not much you can do about that.

If it's not a database issue, give me an estimate on the time it takes using IE5.5 vs IE6!



Hi,

Thanks for the quick response. Actually, I tested with several files of different sizes:

small text file (a few hundred bytes or an empty file)
result - sometimes an error page is displayed pointing to the line mySmartUpload.Upload

displayed below is the error:
Error Type:
aspSmartUpload (0x800A0009)
Subscript out of range
/TOPIXCS/common/FileUpload.inc, line 219


Browser Type:
Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)

Page:
POST 622 bytes to /TOPIXCS/common/FileUpload_PerformUpload.asp

POST Data:
error '80020009'
Exception occurred.

/iisHelp/common/500-100.asp, line 223


medium data/txt file
result - file was uploaded but the progress bar stops practically at the center and after a few minutes (estimated around 5 minutes or more than that) it redirects back to the input page

large data/text file (10 mb)
result - file was not uploaded and a script timeout error was displayed in my page

the error is displayed below:

Error Type:
Active Server Pages, ASP 0113 (0x80004005)
The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools.
/TOPIXCS/common/FileUpload_PerformUpload.asp


Browser Type:
Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)

Page:
POST 10760814 bytes to /TOPIXCS/common/FileUpload_PerformUpload.asp

POST Data:
error '80020009'
Exception occurred.

/iisHelp/common/500-100.asp, line 223

I tested this in IE 6 and while the 10mb file was uploaded slower, no problem was encountered.

Maybe it would be easier if I post the pseudocode

Input page:

<!--#include file="../Common/FileUpload.inc"-->

<FORM name="frmUpload" method="POST" action="FileUpload_PerformUpload.asp" ENCTYPE="multipart/form-data" onSubmit="return uploadClick()">

<td>
<input name="btnBrowse" type="file" style="WIDTH: 328px" size="30" maxlength="200" value="">
</td>

<td>
<input name ="btnUploadFile" type="submit" value="Upload" class="submit">
</td>

</FORM>

FileUpload_PerformUpload.asp

<!--#include file="FileUpload.inc"-->

iReturn = uploadReportFile()

redirect to input page

FileUpload.inc

function uploadReportFile()

set fso = Server.CreateObject("Scripting.FileSystemObject")
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
mySmartUpload.Upload

'connect to db to get the location of the destination directory

'do some validation

iUploadCount = mySmartUpload.Save(strDirectory)

Reply With Quote
  #4  
Old April 9th, 2008, 09:18 AM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 24 m 44 sec
Reputation Power: 7
from the looks of it, what's the maximum file size that the script can handle? also, what's the minimum size that the script can handle?

also, are you using a database, if so, which one are you using? MSSQL or MS Access?

Reply With Quote
  #5  
Old April 9th, 2008, 07:43 PM
rcw823 rcw823 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 4 rcw823 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 31 sec
Reputation Power: 0
Quote:
Originally Posted by infamous-online
from the looks of it, what's the maximum file size that the script can handle? also, what's the minimum size that the script can handle?

also, are you using a database, if so, which one are you using? MSSQL or MS Access?


Actually I'm not really sure where to get the value of the minimum and maximum file size since the files are all uploaded properly when using IE 6. I'm using Oracle database and its just for retrieving of the upload destination path. I'm sure there is no problem with the oracle connectivity since in the case of a medium sized file, the file was uploaded quickly. This implies that it was able to retrieve the destination path of the uploaded file correctly. after that its supposed to redirect to the input page but the progress bar in the status window stays at about 50% for a long time before it completes. I'm beginning to wonder if this is a bug in IE 5.5 and I'm wondering if it would work once I get and install service pack 1

Reply With Quote
  #6  
Old April 10th, 2008, 01:27 PM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 24 m 44 sec
Reputation Power: 7
in databases, they all have a limit by default. most times you'll have to change those default setting manually. Oracle, I've never dealt with that db, so I don't know what or how to change it's settings.

what about the upload script, does it have file size limits and such?

Reply With Quote
  #7  
Old April 11th, 2008, 03:32 AM
rcw823 rcw823 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 4 rcw823 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 31 sec
Reputation Power: 0
Quote:
Originally Posted by infamous-online
in databases, they all have a limit by default. most times you'll have to change those default setting manually. Oracle, I've never dealt with that db, so I don't know what or how to change it's settings.

what about the upload script, does it have file size limits and such?


Hi,

Thanks for all the effort. I found out whats wrong. In my asp file which calls the upload, there is a line that calls Response.redirect <target url>. I found out that doing this in IE 5.5 after calling the upload function causes a long delay. I resolved it by doing this:

<%
dim iReturn
dim strRequest

iReturn = uploadReportFile()
'do some manipulation to form the target url and assign it to strRequest
%>

<script language="javascript">
parent.location.href = '<%=strRequest%>';
</script>

In IE 6, this works, but in IE 5.5 the target page is not loaded. I also tried to call the javascript in the onload event of the body but it still does not work. Can you suggest an alternative?

thanks!

Raymond

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > Performance issue encountered in ASPSmartUpload


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway