Digital Goods Download Failures

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
M3NTA7
Ensign (ENS)
Ensign (ENS)
Posts: 18
Joined: Sun Feb 10, 2008 4:22 pm

Digital Goods Download Failures

Post by M3NTA7 » Thu Feb 28, 2008 8:42 am

I need help with this, as it is killing us :cry:

Have any of you had this happen? any ideas?

Digital Goods Download Failures.

We have an issue where some people (quite a few) who cannot download our digital goods. The checkout process works fine, but when they go to download, here are some of the reported symptoms when clicking on the download icon:
>Only gets to around 85% downloaded then hangs
>Repeatedly asks user to login
> Download hangs.

The browsers that have reported the error are Firefox, and IE (various versions)
The download works fine for me in IE7 and Firefox.

The files are around 17 – 20 mb.

Could this be a server timeout issue that can be configured to a greater timeout value on the server? The event log message mentions timeout.

The following appears in the event log:
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 2/28/2008
Time: 12:28:19 AM
User: N/A
Computer: SERVER31
Description:
Event code: 3001 Event message: The request has been aborted. Event time: 2/28/2008 12:28:19 AM Event time (UTC): 2/28/2008 6:28:19 AM Event ID: 23ffdf15f2f944608beb0226bce089a0 Event sequence: 480 Event occurrence: 12 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1849355948/Root/OnlineStore-2-128486202497812500 Trust level: Full Application Virtual Path: /OnlineStore Application Path: C:\Inetpub\mthweb\OnlineStore\ Machine name: SERVER31 Process information: Process ID: 3936 Process name: w3wp.exe Account name: NT AUTHORITY\NETWORK SERVICE Exception information: Exception type: HttpException Exception message: Request timed out. Request information: Request URL: <snip>/Download.ashx?id=60 Request path: /OnlineStore/Members/Download.ashx User host address: <snip> User: <snip> Is authenticated: True Authentication Type: Forms Thread account name: NT AUTHORITY\NETWORK SERVICE Thread information: Thread ID: 20 Thread account name: NT AUTHORITY\NETWORK SERVICE Is impersonating: False Stack trace:



Thanks,
Glen

M3NTA7
Ensign (ENS)
Ensign (ENS)
Posts: 18
Joined: Sun Feb 10, 2008 4:22 pm

Reproduced

Post by M3NTA7 » Thu Feb 28, 2008 10:01 am

I was able to reproduce this on my own system now by having a large digital good (500mb). My download hung up at around 30 mb.

I think it was somewhere between 90 - 120 seconds when this happened.

I am not sure where a timeout can be set, as the code page is an (Download.ashx) file and doesn't have page directives. etc.

Any ideas?

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Post by Logan Rhodehamel » Thu Feb 28, 2008 5:02 pm

At first I thought maybe this was an ASP.NET page timeout issue, but I have yet to reproduce the problem. You might be able to try this and see if it changes the outcome.

Open the file Members/Download.ashx. Add the line that sets ScriptTimeout to your file. This is the time in seconds. Does setting thsi value have any impact?

Code: Select all

    public void ProcessRequest(HttpContext context)
    {
        context.Server.ScriptTimeout = 7200;
        HttpResponse Response = context.Response;
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

M3NTA7
Ensign (ENS)
Ensign (ENS)
Posts: 18
Joined: Sun Feb 10, 2008 4:22 pm

That was it!

Post by M3NTA7 » Thu Feb 28, 2008 10:22 pm

Yep, the Context.Server.ScriptTimout was it!

7200 seconds = 2 hours

I also changed the Download.ashx in the Admin\DigitalGoods folder.

This is something that should be documented or easily configurable or set to a high level, due to the fact that downloadable items can be large! videos... software... etc... The files that I have for download are only 17mb, and I was having problems.

Thanks alot!

Glen

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Post by Logan Rhodehamel » Fri Feb 29, 2008 9:24 am

I have added a bug and will have the timeout increased for both files.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

Will
Captain (CAPT)
Captain (CAPT)
Posts: 263
Joined: Fri Oct 05, 2007 8:02 am

Post by Will » Tue Mar 18, 2008 3:14 pm

Are there any downsides to making this something like 8 hours? Security issues?

Post Reply