Page 1 of 1

Digital Goods Download Failures

Posted: Thu Feb 28, 2008 8:42 am
by M3NTA7
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

Reproduced

Posted: Thu Feb 28, 2008 10:01 am
by M3NTA7
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?

Posted: Thu Feb 28, 2008 5:02 pm
by Logan Rhodehamel
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;

That was it!

Posted: Thu Feb 28, 2008 10:22 pm
by M3NTA7
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

Posted: Fri Feb 29, 2008 9:24 am
by Logan Rhodehamel
I have added a bug and will have the timeout increased for both files.

Posted: Tue Mar 18, 2008 3:14 pm
by Will
Are there any downsides to making this something like 8 hours? Security issues?