473,395 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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!!

Nov 19 '05 #1
7 1683
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!!

Nov 19 '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!!

Nov 19 '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!!


Nov 19 '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!!


Nov 19 '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!!



Nov 19 '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.
Nov 19 '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!!
>
>
>



Nov 19 '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"...
4
by: Siang Hwee | last post by:
Hi. I am facing some problem in Asp.net. I am developing a payroll application currently. This is a web-based application. User need to click on "Process" button in order to process the payroll...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.