473,803 Members | 3,424 Online
Bytes | Software Development & Data Engineering Community
+ 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.as p is the form processing.

//UploadForm.asp
<FORM NAME="InputForm " ACTION="UploadA ction.asp" METHOD="POST"
enctype=multipa rt/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.as p.
After 30 seconds, it has error "The page cannot be displayed" shown on the
web browser.
It cannot even go to UploadAction.as p. But both UploadForm.asp and
UnploadAction.a sp 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 1710
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.c om> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
I have an upload file operation in the web application. UploadForm.asp is
the form,
and UploadAction.as p is the form processing.

//UploadForm.asp
<FORM NAME="InputForm " ACTION="UploadA ction.asp" METHOD="POST"
enctype=multipa rt/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.as p.
After 30 seconds, it has error "The page cannot be displayed" shown on the
web browser.
It cannot even go to UploadAction.as p. But both UploadForm.asp and
UnploadAction.a sp 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.Htt pException: Maximum request length exceeded."

"Joe" <ap****@yahoo.c om> ¦b¶l¥ó news:%2******** ********@TK2MSF TNGP14.phx.gbl
¤¤¼¶¼g...
I have an upload file operation in the web application. UploadForm.asp is
the form,
and UploadAction.as p is the form processing.

//UploadForm.asp
<FORM NAME="InputForm " ACTION="UploadA ction.asp" METHOD="POST"
enctype=multipa rt/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.as p.
After 30 seconds, it has error "The page cannot be displayed" shown on the
web browser.
It cannot even go to UploadAction.as p. But both UploadForm.asp and
UnploadAction.a sp 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.as p, the web browser append the huge file in HTTP header first,
and at the same time, the web browser try to connect to UploadAction.js p, is
that what you mean?

please advise more. thanks!!

"Lau Lei Cheong" <le****@yehoo.c om.hk> wrote in message
news:#M******** ******@TK2MSFTN GP15.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.Htt pException: Maximum request length exceeded."

"Joe" <ap****@yahoo.c om> ¦b¶l¥ó news:%2******** ********@TK2MSF TNGP14.phx.gbl ¤¤¼¶¼g...
I have an upload file operation in the web application. UploadForm.asp is the form,
and UploadAction.as p is the form processing.

//UploadForm.asp
<FORM NAME="InputForm " ACTION="UploadA ction.asp" METHOD="POST"
enctype=multipa rt/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.as p.
After 30 seconds, it has error "The page cannot be displayed" shown on the web browser.
It cannot even go to UploadAction.as p. But both UploadForm.asp and
UnploadAction.a sp 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.c om.hk> wrote in message
news:#M******** ******@TK2MSFTN GP15.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.Htt pException: Maximum request length exceeded."

"Joe" <ap****@yahoo.c om> ¦b¶l¥ó news:%2******** ********@TK2MSF TNGP14.phx.gbl ¤¤¼¶¼g...
I have an upload file operation in the web application. UploadForm.asp is the form,
and UploadAction.as p is the form processing.

//UploadForm.asp
<FORM NAME="InputForm " ACTION="UploadA ction.asp" METHOD="POST"
enctype=multipa rt/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.as p.
After 30 seconds, it has error "The page cannot be displayed" shown on the web browser.
It cannot even go to UploadAction.as p. But both UploadForm.asp and
UnploadAction.a sp 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.c om> wrote in message
news:ON******** ********@TK2MSF TNGP12.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.c om.hk> wrote in message
news:#M******** ******@TK2MSFTN GP15.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.Htt pException: Maximum request length exceeded."

"Joe" <ap****@yahoo.c om> ¦b¶l¥ó

news:%2******** ********@TK2MSF TNGP14.phx.gbl
¤¤¼¶¼g...
I have an upload file operation in the web application. UploadForm.asp is the form,
and UploadAction.as p is the form processing.

//UploadForm.asp
<FORM NAME="InputForm " ACTION="UploadA ction.asp" METHOD="POST"
enctype=multipa rt/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.as p.
After 30 seconds, it has error "The page cannot be displayed" shown on the web browser.
It cannot even go to UploadAction.as p. But both UploadForm.asp and
UnploadAction.a sp 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.c om> ¦b¶l¥ó news:%2******** ********@TK2MSF TNGP10.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.as p, the web browser append the huge file in HTTP header first, and at the same time, the web browser try to connect to UploadAction.js p, is that what you mean?

Not exactly.

When uploading files with <form encType="multip art/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.Redire ct() or
Server.Transfer () to move to another page. You'll have to insert client-side
script like "window.locatio n='abc.asp';" instead.

"Brandon Potter" <msnews@brandon potter_nospam.c om> ¦b¶l¥ó
news:Oy******** ******@TK2MSFTN GP12.phx.gbl ¤¤¼¶¼g...
"This page cannot be displayed" = client timeout.

Brandon

"Joe" <ap****@yahoo.c om> wrote in message
news:ON******** ********@TK2MSF TNGP12.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.c om.hk> wrote in message
news:#M******** ******@TK2MSFTN GP15.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.Htt pException: Maximum request length exceeded."

"Joe" <ap****@yahoo.c om> ¦b¶l¥ó

news:%2******** ********@TK2MSF TNGP14.phx.gbl
¤¤¼¶¼g...
> I have an upload file operation in the web application. UploadForm.asp is
> the form,
> and UploadAction.as p is the form processing.
>
> //UploadForm.asp
> <FORM NAME="InputForm " ACTION="UploadA ction.asp" METHOD="POST"
> enctype=multipa rt/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.as p.
> After 30 seconds, it has error "The page cannot be displayed" shown

on the
> web browser.
> It cannot even go to UploadAction.as p. But both UploadForm.asp and
> UnploadAction.a sp 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
4541
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" ACTION="UploadAction.asp" METHOD="POST" enctype=multipart/form-data> <input type="file" name="fileName"> //etc ... </FORM>
4
2735
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 every time. Now the problem is, if the processing time is less than 3600 seconds, everything will work fine. but when the processing time is more than 3600 seconds. A page cannot be displayed message will be shown on the browser. Any one know why?...
1
2067
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 data is loaded in the database, the page is redirected to a new one. The problem is, after the file parsing is over and the data is commited to the Oracle database, i get "Page cannot be displayed error". This is
15
2838
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. Everything is the default settings I believe. IIS is running under Local System. In IIS the DefaultAppPool is running under Network Service. Annonymous access uses the account IUSR_JASMINE (machine name is Jasmine).
1
2627
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 instead of displaying the text in XML. Here's more or less what I have: public string checkAsciiFileCheck() { businessLogic bLogic = new businessLogic(); bLogic.processAsciiFile("test"); // If I comment this, I'll see the
2
2789
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 page cannot be displayed" error page. Some points:
3
7336
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 high up. How can I automatically adjust the height of the middle row when a user re-size the browser window. Or, how can specify a minimum height so at least the footer is a footer?
4
12626
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: <input id="biopic" name="biopic" type="file" />
2
2267
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 "Page cannot be displayed error". I suspect i have not even configured tomcat properly. Could anybody pls help me.. Thanks in advance
6
3129
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
9703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10555
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10317
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7607
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5503
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2974
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.