By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,070 Members | 1,718 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,070 IT Pros & Developers. It's quick & easy.

Upload huge file size: "The page cannot be displayed" browser error

P: n/a
Joe
I have an upload file operation in the web application. UploadForm.asp is
the form,
and UploadAction.asp is the form processing.

//UploadForm.asp
<FORM NAME="InputForm" ACTION="UploadAction.asp" METHOD="POST"
enctype=multipart/form-data>
<input type="file" name="fileName">
//etc ...
</FORM>

After I deploy the application to the web server, if I upload a small file
size, it is fine.
But if I upload a huge file size more than 10MB, then it cannot even go to
UploadAction.asp.
After 30 seconds, it has error "The page cannot be displayed" shown on the
web browser.
It cannot even go to UploadAction.asp. But both UploadForm.asp and
UnploadAction.asp are
in the same machine.

Interestingly, if I test in local machine, I can upload any file size
without problem.

I don't have any hints now. any ideas?
please advise. thanks!!

Jul 22 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
One question, is there a proxy server between the client and server in the
failing scenario?
--
Jason Brown
Microsoft GTSC, IIS

This posting is provided "AS IS" with no warranties, and confers no
rights.

"Joe" <ap****@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I have an upload file operation in the web application. UploadForm.asp is
the form,
and UploadAction.asp is the form processing.

//UploadForm.asp
<FORM NAME="InputForm" ACTION="UploadAction.asp" METHOD="POST"
enctype=multipart/form-data>
<input type="file" name="fileName">
//etc ...
</FORM>

After I deploy the application to the web server, if I upload a small file
size, it is fine.
But if I upload a huge file size more than 10MB, then it cannot even go to
UploadAction.asp.
After 30 seconds, it has error "The page cannot be displayed" shown on the
web browser.
It cannot even go to UploadAction.asp. But both UploadForm.asp and
UnploadAction.asp are
in the same machine.

Interestingly, if I test in local machine, I can upload any file size
without problem.

I don't have any hints now. any ideas?
please advise. thanks!!

Jul 22 '05 #2

P: n/a
Try set a higher timeout value in machine.config.

The error occurs because your browser is still sending the file out. Of
course the browser cannot receive response from server at the same time and
therefore determines the web server is not responding. Common problem on
uploading files.

Also note that if you try to upload file with filesize larger than the
maximum request length, the same error may result or you'll get
"System.Web.HttpException: Maximum request length exceeded."

"Joe" <ap****@yahoo.com> 秎ン news:%2****************@TK2MSFTNGP14.phx.gbl
い级糶...
I have an upload file operation in the web application. UploadForm.asp is
the form,
and UploadAction.asp is the form processing.

//UploadForm.asp
<FORM NAME="InputForm" ACTION="UploadAction.asp" METHOD="POST"
enctype=multipart/form-data>
<input type="file" name="fileName">
//etc ...
</FORM>

After I deploy the application to the web server, if I upload a small file
size, it is fine.
But if I upload a huge file size more than 10MB, then it cannot even go to
UploadAction.asp.
After 30 seconds, it has error "The page cannot be displayed" shown on the
web browser.
It cannot even go to UploadAction.asp. But both UploadForm.asp and
UnploadAction.asp are
in the same machine.

Interestingly, if I test in local machine, I can upload any file size
without problem.

I don't have any hints now. any ideas?
please advise. thanks!!

Jul 22 '05 #3

P: n/a
Joe
> The error occurs because your browser is still sending the file out. Of
course the browser cannot receive response from server at the same time and therefore determines the web server is not responding. Common problem on
uploading files.
Thanks Lau Lei Cheong!! To solve the problem, I try to understand the
underlying principles first. The error "The page cannot be displayed" is the
error from web browser because web browser failed to connect to the server
for that requested page. correct? When UploadForm.asp post data to
UploadAction.asp, the web browser append the huge file in HTTP header first,
and at the same time, the web browser try to connect to UploadAction.jsp, is
that what you mean?

please advise more. thanks!!

"Lau Lei Cheong" <le****@yehoo.com.hk> wrote in message
news:#M**************@TK2MSFTNGP15.phx.gbl... Try set a higher timeout value in machine.config.

The error occurs because your browser is still sending the file out. Of
course the browser cannot receive response from server at the same time and therefore determines the web server is not responding. Common problem on
uploading files.

Also note that if you try to upload file with filesize larger than the
maximum request length, the same error may result or you'll get
"System.Web.HttpException: Maximum request length exceeded."

"Joe" <ap****@yahoo.com> 秎ン news:%2****************@TK2MSFTNGP14.phx.gbl い级糶...
I have an upload file operation in the web application. UploadForm.asp is the form,
and UploadAction.asp is the form processing.

//UploadForm.asp
<FORM NAME="InputForm" ACTION="UploadAction.asp" METHOD="POST"
enctype=multipart/form-data>
<input type="file" name="fileName">
//etc ...
</FORM>

After I deploy the application to the web server, if I upload a small file size, it is fine.
But if I upload a huge file size more than 10MB, then it cannot even go to UploadAction.asp.
After 30 seconds, it has error "The page cannot be displayed" shown on the web browser.
It cannot even go to UploadAction.asp. But both UploadForm.asp and
UnploadAction.asp are
in the same machine.

Interestingly, if I test in local machine, I can upload any file size
without problem.

I don't have any hints now. any ideas?
please advise. thanks!!


Jul 22 '05 #4

P: n/a
Joe
one more, "The page cannot be displayed" means client-side web browser time
out, or web server time out? This is very important.

please advise. thanks!!

"Lau Lei Cheong" <le****@yehoo.com.hk> wrote in message
news:#M**************@TK2MSFTNGP15.phx.gbl...
Try set a higher timeout value in machine.config.

The error occurs because your browser is still sending the file out. Of
course the browser cannot receive response from server at the same time and therefore determines the web server is not responding. Common problem on
uploading files.

Also note that if you try to upload file with filesize larger than the
maximum request length, the same error may result or you'll get
"System.Web.HttpException: Maximum request length exceeded."

"Joe" <ap****@yahoo.com> 秎ン news:%2****************@TK2MSFTNGP14.phx.gbl い级糶...
I have an upload file operation in the web application. UploadForm.asp is the form,
and UploadAction.asp is the form processing.

//UploadForm.asp
<FORM NAME="InputForm" ACTION="UploadAction.asp" METHOD="POST"
enctype=multipart/form-data>
<input type="file" name="fileName">
//etc ...
</FORM>

After I deploy the application to the web server, if I upload a small file size, it is fine.
But if I upload a huge file size more than 10MB, then it cannot even go to UploadAction.asp.
After 30 seconds, it has error "The page cannot be displayed" shown on the web browser.
It cannot even go to UploadAction.asp. But both UploadForm.asp and
UnploadAction.asp are
in the same machine.

Interestingly, if I test in local machine, I can upload any file size
without problem.

I don't have any hints now. any ideas?
please advise. thanks!!


Jul 22 '05 #5

P: n/a
"This page cannot be displayed" = client timeout.

Brandon

"Joe" <ap****@yahoo.com> wrote in message
news:ON****************@TK2MSFTNGP12.phx.gbl...
one more, "The page cannot be displayed" means client-side web browser time out, or web server time out? This is very important.

please advise. thanks!!

"Lau Lei Cheong" <le****@yehoo.com.hk> wrote in message
news:#M**************@TK2MSFTNGP15.phx.gbl...
Try set a higher timeout value in machine.config.

The error occurs because your browser is still sending the file out. Of
course the browser cannot receive response from server at the same time and
therefore determines the web server is not responding. Common problem on
uploading files.

Also note that if you try to upload file with filesize larger than the
maximum request length, the same error may result or you'll get
"System.Web.HttpException: Maximum request length exceeded."

"Joe" <ap****@yahoo.com> 秎ン

news:%2****************@TK2MSFTNGP14.phx.gbl
い级糶...
I have an upload file operation in the web application. UploadForm.asp is the form,
and UploadAction.asp is the form processing.

//UploadForm.asp
<FORM NAME="InputForm" ACTION="UploadAction.asp" METHOD="POST"
enctype=multipart/form-data>
<input type="file" name="fileName">
//etc ...
</FORM>

After I deploy the application to the web server, if I upload a small file size, it is fine.
But if I upload a huge file size more than 10MB, then it cannot even
go to UploadAction.asp.
After 30 seconds, it has error "The page cannot be displayed" shown on the web browser.
It cannot even go to UploadAction.asp. But both UploadForm.asp and
UnploadAction.asp are
in the same machine.

Interestingly, if I test in local machine, I can upload any file size
without problem.

I don't have any hints now. any ideas?
please advise. thanks!!



Jul 22 '05 #6

P: n/a
"Joe" <ap****@yahoo.com> 秎ン news:%2****************@TK2MSFTNGP10.phx.gbl
い级糶...
The error occurs because your browser is still sending the file out. Of
course the browser cannot receive response from server at the same time and
therefore determines the web server is not responding. Common problem on
uploading files.


Thanks Lau Lei Cheong!! To solve the problem, I try to understand the
underlying principles first. The error "The page cannot be displayed" is

the error from web browser because web browser failed to connect to the server
for that requested page. correct? Yes. Exactly.
When UploadForm.asp post data to
UploadAction.asp, the web browser append the huge file in HTTP header first, and at the same time, the web browser try to connect to UploadAction.jsp, is that what you mean?

Not exactly.

When uploading files with <form encType="multipart/form-data">, the files
are embedded in the request stream. And your page can'r return anything
unless 1) having the stream fully receieved or 2) you process the stream
yourself or 3) you use any of the third party conponent to process it.
Jul 22 '05 #7

P: n/a
In fact you can Response.Write() something to push the response header of
current page to the client first and put it in wait state. However, using
this trick you'll no longer be able to use Response.Redirect() or
Server.Transfer() to move to another page. You'll have to insert client-side
script like "window.location='abc.asp';" instead.

"Brandon Potter" <msnews@brandonpotter_nospam.com> 秎ン
news:Oy**************@TK2MSFTNGP12.phx.gbl い级糶...
"This page cannot be displayed" = client timeout.

Brandon

"Joe" <ap****@yahoo.com> wrote in message
news:ON****************@TK2MSFTNGP12.phx.gbl...
one more, "The page cannot be displayed" means client-side web browser

time
out, or web server time out? This is very important.

please advise. thanks!!

"Lau Lei Cheong" <le****@yehoo.com.hk> wrote in message
news:#M**************@TK2MSFTNGP15.phx.gbl...
Try set a higher timeout value in machine.config.

The error occurs because your browser is still sending the file out. Of course the browser cannot receive response from server at the same time
and
therefore determines the web server is not responding. Common problem
on uploading files.

Also note that if you try to upload file with filesize larger than the
maximum request length, the same error may result or you'll get
"System.Web.HttpException: Maximum request length exceeded."

"Joe" <ap****@yahoo.com> 秎ン

news:%2****************@TK2MSFTNGP14.phx.gbl
い级糶...
> I have an upload file operation in the web application. UploadForm.asp is
> the form,
> and UploadAction.asp is the form processing.
>
> //UploadForm.asp
> <FORM NAME="InputForm" ACTION="UploadAction.asp" METHOD="POST"
> enctype=multipart/form-data>
> <input type="file" name="fileName">
> //etc ...
> </FORM>
>
> After I deploy the application to the web server, if I upload a
small file
> size, it is fine.
> But if I upload a huge file size more than 10MB, then it cannot even go
to
> UploadAction.asp.
> After 30 seconds, it has error "The page cannot be displayed" shown

on the
> web browser.
> It cannot even go to UploadAction.asp. But both UploadForm.asp and
> UnploadAction.asp are
> in the same machine.
>
> Interestingly, if I test in local machine, I can upload any file

size > without problem.
>
> I don't have any hints now. any ideas?
> please advise. thanks!!
>
>
>



Jul 22 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.