473,374 Members | 1,651 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,374 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!!

Jul 22 '05 #1
7 4511
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> 秎ン 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
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
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
"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
"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
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 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?
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.