User cancels manual file download and aspnet_wp.exe recycles

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Simon McCulloch (fade_at_wn.com.au)
Date: 04/30/04


Date: Fri, 30 Apr 2004 01:56:02 -0700

Hi all,

I have an ASP.net website that uses an aspx page locate and stream a file to an authenticated user and I'm getting the error:
  Aspnet_wp.exe (PID:XXXX) stopped unexpectedly.

which the user sees as the Server Unavailable page.

I am aware of problems using Response.BinaryWrite or Response.WriteFile to download large files and so opted for the chunked method described in the KB article 812406.

The problem is that when a user cancels the download, the website stops responding. If the user then attempts to start a new download, either nothing happens or they get a Server Unavailable and my ASPnet_wp.exe gets recycled.

If I step though the code and watch the file streaming out, then cancel the download before it completes, the loop continues for a while then stops. Hitting break and trying to check the values of the context, request or response objects gives me "error: cannot obtain value".

My attempts at using BinaryWrite and WriteFile met with similar problems. I have seen reference to a hotfix that adds a Response.TransferFile method but I'm not sure if this is caused by the same problem (aspnet running out of memory space), even though the symptoms are the same (recycled aspnet_wp.exe)

Has anyone had similar problems? if so, will the hotfix correct it?

I have found a few other posts on this problem around the net (mostly dated 1-2 years ago) but not a single response!

please help!



Relevant Pages

  • Re: Windows 2003 security issue
    ... is there might be more than one Group Policy managing those settings and it ... might help running rsop.msc on your TS server to see what Group Policies are ... is it because of that particular file or website that I ... As it is, I can't download from any site, even ...
    (microsoft.public.windows.server.security)
  • Re: Windows 2003 security issue
    ... DC gpo (if the server is a DC), domain GPO, and then local GPO, when you run ... is it because of that particular file or website that I ... As it is, I can't download from any site, ...
    (microsoft.public.windows.server.security)
  • Re: How to check to make sure Website up..
    ... This is the one that will check your website, ... If your server is crashing or hanging you might want to ... download our ReJuvin8 tool. ...
    (microsoft.public.inetserver.iis)
  • Multiple Shared Borders
    ... I had to take a website completely down - I used Front ... Page to download the site by example. ... with a server again, and I tried to publish the site. ... advance - this is REALLY driving me nuts! ...
    (microsoft.public.frontpage.client)
  • Enable Bandwidth throttling programmatically using WMI in C#
    ... Does anybody has the script to add Bandwidth throttling and Website ... public string IPAddress ... /// Gets or sets the name of the IIS server that site ... ManagementObject ...
    (microsoft.public.win32.programmer.wmi)