Cannot get request third time in a row - GetRequestStream() -

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



Hi

I am uploading files to my ASP script one by one - from C#
application. Each time little upload form is created with
backgroundworker in it. When I try to upload THIRD file the worker is
stuck on getting requeststream.


WebRequest req = WebRequest.Create(url);
req.Method = "POST";

//Headers
req.ContentType = "multipart/form-data";
req.ContentLength = fileSize;
req.Headers.Add("Name",file.Name);
req.Headers.Add("Path", path);
req.Headers.Add("SessionID", session);

/// stuck here
Stream stream = req.GetRequestStream();

When I debug it on the server during third time, the Page_Load event
is not even called.
Do you have any idea what could that be?

Best Regards
PK
.



Relevant Pages

  • File Uploads taking *forever* - any way to improve this?
    ... My WSS 2003 customers are having significant problems ... Uploading files is incredibly slow in general. ... A 5-MB file took 6 minutes to upload. ... immediately recall if there is a timeout setting in WSS ...
    (microsoft.public.sharepoint.windowsservices)
  • IE/SSL File upload failure
    ... >>website often fails. ... >>It fails about 40% of the time when I am uploading files ... >>My website implements the upload using the standard html ... >>connection settings or security settings. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • IE/SSL File upload failure
    ... >website often fails. ... >It fails about 100% of the time when I am uploading files ... >Using a different browser, these uploads never fail. ... >My website implements the upload using the standard html ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • strange FTP upload issue
    ... I have a problem downloading or uploading files to FTP site of the hosting ... So first I was thinking this is source problem since you can upload from one ... Hosting company blaming our source of upload since other can upload to this ...
    (microsoft.public.inetserver.iis.ftp)
  • Uploading a file from .asp
    ... IIS, uploading files of any size to a server folder. ... >The same application installed in a Windows 2003 IIS ... limits the upload size to approx 200 Kb, ...
    (microsoft.public.inetserver.asp.general)