Cannot get request third time in a row - GetRequestStream() -
- From: Piotrekk <Piotr.Kolodziej@xxxxxxxxx>
- Date: Mon, 23 Jun 2008 04:59:58 -0700 (PDT)
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
.
- Follow-Ups:
- Re: Cannot get request third time in a row - GetRequestStream() -
- From: Jon Skeet [C# MVP]
- Re: Cannot get request third time in a row - GetRequestStream() -
- Prev by Date: Re: List of generics List<myObject<T>>, is this possible with the T possibly changing?
- Next by Date: Re: List of generics List<myObject<T>>, is this possible with the T possibly changing?
- Previous by thread: Convert a string which might be a number to an int
- Next by thread: Re: Cannot get request third time in a row - GetRequestStream() -
- Index(es):
Relevant Pages
|