Problem with upload

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a web application that allows uploads. Sometimes on uploads, the IE
Progress bar will fill up all the way and then display "Page cannot be
displayed", not a 500 error, just a standard cannot find dns page. This
problem happens on different size files. I have gotten 1 MB files to work
and 10 MB files to work. But sometimes 2 MB files will not work. I have
this in the web.config

<httpRuntime executionTimeout="54000" maxRequestLength="50000" />

If the memory goes to high, will the session die? What else can I do?

Thanks for your help.
 
Hi Mike,

Big files are tough for IIS to digest. It may be grinding to a halt.

You probably want to go with a third-party upload component to handle that.
 
Hi Mike,

The elements
<httpRuntime executionTimeout="54000" maxRequestLength="50000" />

you used are correct and the problem it works sometimes but failed
randomly may due to the different clientside network bandwidth.
Also, if you feel it not convenient to set the large executionTimeout or
RequestLength limit for the whole application, you can use the <location>
element to speicfy this for a single page, such as

<configuration>
<location path="UploadPage.aspx">
<httpRuntime maxRequestLength="100000"/>
</location>
</configuration>

In addition, as Ken said, if you want more professional upload control and
functions, maybe a httpHandler/Module or raw ISAPI component are more
suitable. You can some 3rd party components does this work.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top