473,470 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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
7 4516
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
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> ¦b¶l¥ó news:%2****************@TK2MSFTNGP14.phx.gbl
¤¤¼¶¼g...
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
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> ¦b¶l¥ó news:%2****************@TK2MSFTNGP14.phx.gbl ¤¤¼¶¼g...
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
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> ¦b¶l¥ó news:%2****************@TK2MSFTNGP14.phx.gbl ¤¤¼¶¼g...
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
"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> ¦b¶l¥ó

news:%2****************@TK2MSFTNGP14.phx.gbl
¤¤¼¶¼g...
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
"Joe" <ap****@yahoo.com> ¦b¶l¥ó news:%2****************@TK2MSFTNGP10.phx.gbl
¤¤¼¶¼g...
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
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> ¦b¶l¥ó
news:Oy**************@TK2MSFTNGP12.phx.gbl ¤¤¼¶¼g...
"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> ¦b¶l¥ó

news:%2****************@TK2MSFTNGP14.phx.gbl
¤¤¼¶¼g...
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Joe | last post by:
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"...
1
by: kongkong99 | last post by:
Hi, I have an ASP.NET application that loads files, parses them and loads in the database which is running in window 2000 webserver. When I load a text file after the file is parsed and the...
15
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
1
by: VMI | last post by:
I wrote a web service whose only purpose is to update a field in a table (sql server). And everything works except for the browser window that opens up with "The page cannot be displayed" error...
2
by: spam1 | last post by:
Hi all, I'm not new to ASP.NET but I'm trying to get a simple Hello World page going on IIS 6.0 on Windows 2003. I'm connecting from the local machine. It comes back with the standard "The...
3
by: Q. John Chen | last post by:
I have a page contains a table (e.g a 3-row table). The middle row is for the content and the bottom row is for footer notes. When the middle row does not have much info, the footer goes way too...
4
by: lawrence k | last post by:
I've a file that starts like this: <form id="pdsForm" method="post" action="/mcControlPanel.php" class="mcForm" charset="UTF-8" enctype="multipart/form-data" > and it contains this input: ...
2
by: MicroMinds | last post by:
Hi, I have installed jdk 6 and tomcat 4.1.29 in my local machine. Just want to run some sample web application. When tried to check if tomcat works fine using http://localhost:8080, I'm getting...
6
by: TC | last post by:
Hey All, I'm receiving a weird error in IE now: "The XML page cannot be displayed" This is even with the simplest of pages that I previously could view. Any ideas?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.