Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Trouble uploading large files


Message #1 by "Garland Frye" <gfrye@s...> on Tue, 8 Jan 2002 11:25:37 -0600
I am having trouble uploading large files from an aspx form, the smaller

files work fine, but on the large ones the file never posts to the

directory, For debugging purposes I'm posting the file to and from the same

machine as the application is running on, so there is no network bottleneck,

seems to me that the file should write quickly, however the browser just

keeps working, and the file never reaches it's destination. I have done a

few things that allow this:



1: In the upload.aspx   Page_Init event I have set the timeout to 6hrs. so

that large files will have time to post across a network connection... ie.

Server.ScriptTimeout=2880



2: In the web.config file I have added the setting...

   <httpRuntime maxRequestLength="999999999" />



    These settings should give me the ability to upload files of almost a

1GB, and the time to do so... What am I missing?



Any help would be greatly appreciated



Thanks In Advance,

Garland R. Frye





Message #2 by "John Corrigan" <JohnC@i...> on Tue, 8 Jan 2002 12:25:47 -0500
The following link contains info that may help.



http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=3D150





-----Original Message-----

From: Garland Frye [mailto:gfrye@s...]

Sent: Tuesday, January 08, 2002 12:26 PM

To: ASP+

Subject: [aspx] Trouble uploading large files





Advertise on P2P or become an official list sponsor.



Would you like your message to reach as many as 36,000

professionals? Or 92,000? Or maybe even 1 million?

Contact us (verag@w...) for more information on

banner, button and newsletter advertising.

---

I am having trouble uploading large files from an aspx form, the smaller

files work fine, but on the large ones the file never posts to the

directory, For debugging purposes I'm posting the file to and from the

same

machine as the application is running on, so there is no network

bottleneck,

seems to me that the file should write quickly, however the browser just

keeps working, and the file never reaches it's destination. I have done

a

few things that allow this:



1: In the upload.aspx   Page_Init event I have set the timeout to 6hrs.

so

that large files will have time to post across a network connection...

ie.

Server.ScriptTimeout=3D2880



2: In the web.config file I have added the setting...

   <httpRuntime maxRequestLength=3D"999999999" />



    These settings should give me the ability to upload files of almost

a

1GB, and the time to do so... What am I missing?



Any help would be greatly appreciated



Thanks In Advance,

Garland R. Frye










Message #3 by "Garland Frye" <gfrye@s...> on Tue, 8 Jan 2002 13:19:53 -0600
thank you, I will check that out... Actually I've figured out the problem by

checking the event log of the server. aspnet_wp.exe is having to allocate

more that 60%(MS Magic #) of the physical memory of the machine to handle

the buffer that is being built to transfer the file(153MB of 256MB in my

case) and it terminates because of this... Now I'm looking for information

on someway regulating the size of this buffer...



Again thanks for the link,

Garland R. Frye

"John Corrigan" <JohnC@i...> wrote in message news:133940@a...



The following link contains info that may help.



http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=150





-----Original Message-----

From: Garland Frye [mailto:gfrye@s...]

Sent: Tuesday, January 08, 2002 12:26 PM

To: ASP+

Subject: [aspx] Trouble uploading large files





Advertise on P2P or become an official list sponsor.



Would you like your message to reach as many as 36,000

professionals? Or 92,000? Or maybe even 1 million?

Contact us (verag@w...) for more information on

banner, button and newsletter advertising.

---

I am having trouble uploading large files from an aspx form, the smaller

files work fine, but on the large ones the file never posts to the

directory, For debugging purposes I'm posting the file to and from the

same

machine as the application is running on, so there is no network

bottleneck,

seems to me that the file should write quickly, however the browser just

keeps working, and the file never reaches it's destination. I have done

a

few things that allow this:



1: In the upload.aspx   Page_Init event I have set the timeout to 6hrs.

so

that large files will have time to post across a network connection...

ie.

Server.ScriptTimeout=2880



2: In the web.config file I have added the setting...

   <httpRuntime maxRequestLength="999999999" />



    These settings should give me the ability to upload files of almost

a

1GB, and the time to do so... What am I missing?



Any help would be greatly appreciated



Thanks In Advance,

Garland R. Frye


















Message #4 by "Mark A. Struck" <mstruck@s...> on Tue, 8 Jan 2002 13:20:00 -0600
This is a multi-part message in MIME format.



------_=_NextPart_001_01C19879.776F7F10

Content-Type: text/plain;

	charset="iso-8859-1"

Content-Transfer-Encoding: quoted-printable



Garland,



You might want to try using FTP for files that large. It's a much better

protocol for transferring files then using HTTP.



Mark Struck



-----Original Message-----

From: Garland Frye [mailto:gfrye@s...]

Sent: Tuesday, January 08, 2002 1:20 PM

To: ASP+

Subject: [aspx] Re: Trouble uploading large files





Advertise on P2P or become an official list sponsor.



Would you like your message to reach as many as 36,000

professionals? Or 92,000? Or maybe even 1 million?

Contact us (verag@w...) for more information on

banner, button and newsletter advertising.

---

thank you, I will check that out... Actually I've figured out the

problem by

checking the event log of the server. aspnet_wp.exe is having to

allocate

more that 60%(MS Magic #) of the physical memory of the machine to

handle

the buffer that is being built to transfer the file(153MB of 256MB in my

case) and it terminates because of this... Now I'm looking for

information

on someway regulating the size of this buffer...



Again thanks for the link,

Garland R. Frye

"John Corrigan" <JohnC@i...> wrote in message news:133940@a...



The following link contains info that may help.



http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=3D150





-----Original Message-----

From: Garland Frye [mailto:gfrye@s...]

Sent: Tuesday, January 08, 2002 12:26 PM

To: ASP+

Subject: [aspx] Trouble uploading large files





Advertise on P2P or become an official list sponsor.



Would you like your message to reach as many as 36,000

professionals? Or 92,000? Or maybe even 1 million?

Contact us (verag@w...) for more information on

banner, button and newsletter advertising.

---

I am having trouble uploading large files from an aspx form, the smaller

files work fine, but on the large ones the file never posts to the

directory, For debugging purposes I'm posting the file to and from the

same

machine as the application is running on, so there is no network

bottleneck,

seems to me that the file should write quickly, however the browser just

keeps working, and the file never reaches it's destination. I have done

a

few things that allow this:



1: In the upload.aspx   Page_Init event I have set the timeout to 6hrs.

so

that large files will have time to post across a network connection...

ie.

Server.ScriptTimeout=3D2880



2: In the web.config file I have added the setting...

   <httpRuntime maxRequestLength=3D"999999999" />



    These settings should give me the ability to upload files of almost

a

1GB, and the time to do so... What am I missing?



Any help would be greatly appreciated



Thanks In Advance,

Garland R. Frye


























Message #5 by Todd Carrico <ToddC@m...> on Tue, 8 Jan 2002 13:31:19 -0600

[Todd Carrico]

Here here!! FTP rocks for stuff like this.



tc



Garland, 

You might want to try using FTP for files that large. It's a much better

protocol for transferring files then using HTTP.

Mark Struck 





-----Original Message----- 

From: Garland Frye

--- 

thank you, I will check that out... Actually I've figured out the problem by



checking the event log of the server. aspnet_wp.exe is having to allocate 

more that 60%(MS Magic #) of the physical memory of the machine to handle 

the buffer that is being built to transfer the file(153MB of 256MB in my 

case) and it terminates because of this... Now I'm looking for information 

on someway regulating the size of this buffer... 

Again thanks for the link, 

Garland R. Frye 

"John Corrigan" <JohnC@i...> wrote in message news:133940@a... 

The following link contains info that may help. 

http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=150 



 

Message #6 by "Christian M. Aranda" <c.aranda@v...> on Tue, 8 Jan 2002 14:34:15 -0500
I disagree.  HTTP is the protocol to use in this case because of error

checking and return codes that are not available in FTP.  I would

specifically try to use HTTP/1.1 and specify a byte-range for the object you

are trying to retrieve.  That way, you can break it down into manageable

chunks and not fill your buffer.  See RFC 2616 for more complete details.



http://www.w3.org/Protocols/rfc2616/rfc2616.html



Cheers,



Christian



-----Original Message-----

From: Todd Carrico [mailto:ToddC@m...]

Sent: Tuesday, January 08, 2002 2:31 PM

To: ASP+

Subject: [aspx] Re: Trouble uploading large files





Advertise on P2P or become an official list sponsor.



Would you like your message to reach as many as 36,000

professionals? Or 92,000? Or maybe even 1 million?

Contact us (verag@w...) for more information on

banner, button and newsletter advertising.

---



[Todd Carrico]

Here here!! FTP rocks for stuff like this.



tc



Garland,

You might want to try using FTP for files that large. It's a much better

protocol for transferring files then using HTTP.

Mark Struck





-----Original Message-----

From: Garland Frye

---

thank you, I will check that out... Actually I've figured out the problem by



checking the event log of the server. aspnet_wp.exe is having to allocate

more that 60%(MS Magic #) of the physical memory of the machine to handle

the buffer that is being built to transfer the file(153MB of 256MB in my

case) and it terminates because of this... Now I'm looking for information

on someway regulating the size of this buffer...

Again thanks for the link,

Garland R. Frye

"John Corrigan" <JohnC@i...> wrote in message news:133940@a...

The following link contains info that may help.

http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=150












Message #7 by "Garland Frye" <gfrye@s...> on Tue, 8 Jan 2002 13:44:38 -0600
You are correct, I would like to use FTP, but part of the criteria is to do

this from a web page, is there some way of posting to the server using ftp,

and presenting the user interface on a web page simultaneously...



Thank you,

Garland R. Frye



"Garland Frye" <gfrye@s...> wrote in message news:134000@a...

>

> thank you, I will check that out... Actually I've figured out the problem

by

> checking the event log of the server. aspnet_wp.exe is having to allocate

> more that 60%(MS Magic #) of the physical memory of the machine to handle

> the buffer that is being built to transfer the file(153MB of 256MB in my

> case) and it terminates because of this... Now I'm looking for information

> on someway regulating the size of this buffer...

>

> Again thanks for the link,

> Garland R. Frye

> "John Corrigan" <JohnC@i...> wrote in message news:133940@a...

>

> The following link contains info that may help.

>

> http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=150

>

>

> -----Original Message-----

> From: Garland Frye [mailto:gfrye@s...]

> Sent: Tuesday, January 08, 2002 12:26 PM

> To: ASP+

> Subject: [aspx] Trouble uploading large files

>

>

> Advertise on P2P or become an official list sponsor.

>

> Would you like your message to reach as many as 36,000

> professionals? Or 92,000? Or maybe even 1 million?

> Contact us (verag@w...) for more information on

> banner, button and newsletter advertising.

> ---

> I am having trouble uploading large files from an aspx form, the smaller

> files work fine, but on the large ones the file never posts to the

> directory, For debugging purposes I'm posting the file to and from the

> same

> machine as the application is running on, so there is no network

> bottleneck,

> seems to me that the file should write quickly, however the browser just

> keeps working, and the file never reaches it's destination. I have done

> a

> few things that allow this:

>

> 1: In the upload.aspx   Page_Init event I have set the timeout to 6hrs.

> so

> that large files will have time to post across a network connection...

> ie.

> Server.ScriptTimeout=2880

>

> 2: In the web.config file I have added the setting...

>    <httpRuntime maxRequestLength="999999999" />

>

>     These settings should give me the ability to upload files of almost

> a

> 1GB, and the time to do so... What am I missing?

>

> Any help would be greatly appreciated

>

> Thanks In Advance,

> Garland R. Frye

>

>

>




>

>

>

>

>

>





Message #8 by "Mark A. Struck" <mstruck@s...> on Tue, 8 Jan 2002 14:35:06 -0600
This is a multi-part message in MIME format.



------_=_NextPart_001_01C19883.F53B7CA0

Content-Type: text/plain;

	charset="iso-8859-1"

Content-Transfer-Encoding: quoted-printable



Christian,



FTP provides error checking and return codes so I'm assuming you mean

that HTTP provides these but in a better way then FTP.



Mark Struck



-----Original Message-----

From: Christian M. Aranda [mailto:c.aranda@v...]

Sent: Tuesday, January 08, 2002 1:34 PM

To: ASP+

Subject: [aspx] Re: Trouble uploading large files





Advertise on P2P or become an official list sponsor.



Would you like your message to reach as many as 36,000

professionals? Or 92,000? Or maybe even 1 million?

Contact us (verag@w...) for more information on

banner, button and newsletter advertising.

---

I disagree.  HTTP is the protocol to use in this case because of error

checking and return codes that are not available in FTP.  I would

specifically try to use HTTP/1.1 and specify a byte-range for the object

you

are trying to retrieve.  That way, you can break it down into manageable

chunks and not fill your buffer.  See RFC 2616 for more complete

details.



http://www.w3.org/Protocols/rfc2616/rfc2616.html



Cheers,



Christian



-----Original Message-----

From: Todd Carrico [mailto:ToddC@m...]

Sent: Tuesday, January 08, 2002 2:31 PM

To: ASP+

Subject: [aspx] Re: Trouble uploading large files





Advertise on P2P or become an official list sponsor.



Would you like your message to reach as many as 36,000

professionals? Or 92,000? Or maybe even 1 million?

Contact us (verag@w...) for more information on

banner, button and newsletter advertising.

---



[Todd Carrico]

Here here!! FTP rocks for stuff like this.



tc



Garland,

You might want to try using FTP for files that large. It's a much better

protocol for transferring files then using HTTP.

Mark Struck





-----Original Message-----

From: Garland Frye

---

thank you, I will check that out... Actually I've figured out the

problem by



checking the event log of the server. aspnet_wp.exe is having to

allocate

more that 60%(MS Magic #) of the physical memory of the machine to

handle

the buffer that is being built to transfer the file(153MB of 256MB in my

case) and it terminates because of this... Now I'm looking for

information

on someway regulating the size of this buffer...

Again thanks for the link,

Garland R. Frye

"John Corrigan" <JohnC@i...> wrote in message news:133940@a...

The following link contains info that may help.

http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=3D150





















  Return to Index