Ask a Question related to ASP Components, Design and Development.
-
Joe #1
Upload huge file size: "The page cannot be displayed" browser error
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!!
Joe Guest
-
"open browser window" size
I am updating a site that uses pop-ups for definitions throughout the site. This is a medical site, so the pop-up definitions are essential. The... -
Getting "The Page cannot be displayed" on some machines but not others with ASP.NET pages
I have three ASP.NET applications running with the following configuration on a Windows XP Pro machine running IIS 5.1: web.config - <identity... -
Proxy settings cause error "The page can not be displayed"
After setting the proxt of a client browser, submit button will cause error "The page can not be displayed". This is not the only error, sometime the... -
"page cannot be displayed" (addendum)
BTW: We're assuming the user has flash 6.0 plugin and above. Thanks again -
sporadic "page cannot be displayed" error
Sporadically, our clients receive "page cannot be displayed" error. Failure does not occur at the same line, but error code and description are... -
Jason Brown [MSFT] #2
Re: Upload huge file size: "The page cannot be displayed" browser error
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" <apngss@yahoo.com> wrote in message
news:%23hBTbHu8EHA.3708@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!!
>
>
>
Jason Brown [MSFT] Guest
-
Lau Lei Cheong #3
Re: Upload huge file size: "The page cannot be displayed" browser error
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" <apngss@yahoo.com> ¦b¶l¥ó news:%23hBTbHu8EHA.3708@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!!
>
>
>
Lau Lei Cheong Guest
-
Joe #4
Re: Upload huge file size: "The page cannot be displayed" browser error
> The error occurs because your browser is still sending the file out. Of
and> course the browser cannot receive response from server at the same timeThanks Lau Lei Cheong!! To solve the problem, I try to understand the> therefore determines the web server is not responding. Common problem on
> uploading files.
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" <leu_lc@yehoo.com.hk> wrote in message
news:#MYGkSu8EHA.3076@TK2MSFTNGP15.phx.gbl...and> 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 timenews:%23hBTbHu8EHA.3708@TK2MSFTNGP14.phx.gbl> 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" <apngss@yahoo.com> ¦b¶l¥óis> ¤¤¼¶¼g...> > I have an upload file operation in the web application. UploadForm.aspfile> > 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 smallto> > size, it is fine.
> > But if I upload a huge file size more than 10MB, then it cannot even gothe> > UploadAction.asp.
> > After 30 seconds, it has error "The page cannot be displayed" shown on>> > 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!!
> >
> >
> >
>
Joe Guest
-
Joe #5
Re: Upload huge file size: "The page cannot be displayed" browser error
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" <leu_lc@yehoo.com.hk> wrote in message
news:#MYGkSu8EHA.3076@TK2MSFTNGP15.phx.gbl...and> 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 timenews:%23hBTbHu8EHA.3708@TK2MSFTNGP14.phx.gbl> 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" <apngss@yahoo.com> ¦b¶l¥óis> ¤¤¼¶¼g...> > I have an upload file operation in the web application. UploadForm.aspfile> > 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 smallto> > size, it is fine.
> > But if I upload a huge file size more than 10MB, then it cannot even gothe> > UploadAction.asp.
> > After 30 seconds, it has error "The page cannot be displayed" shown on>> > 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!!
> >
> >
> >
>
Joe Guest
-
Brandon Potter #6
Re: Upload huge file size: "The page cannot be displayed" browser error
"This page cannot be displayed" = client timeout.
Brandon
"Joe" <apngss@yahoo.com> wrote in message
news:ON%238CAv8EHA.3908@TK2MSFTNGP12.phx.gbl...time> one more, "The page cannot be displayed" means client-side web browsergo> out, or web server time out? This is very important.
>
> please advise. thanks!!
>
> "Lau Lei Cheong" <leu_lc@yehoo.com.hk> wrote in message
> news:#MYGkSu8EHA.3076@TK2MSFTNGP15.phx.gbl...> and> > 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> news:%23hBTbHu8EHA.3708@TK2MSFTNGP14.phx.gbl> > 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" <apngss@yahoo.com> ¦b¶l¥ó> is> > ¤¤¼¶¼g...> > > I have an upload file operation in the web application. UploadForm.asp> file> > > 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> > > size, it is fine.
> > > But if I upload a huge file size more than 10MB, then it cannot even> to> the> > > UploadAction.asp.
> > > After 30 seconds, it has error "The page cannot be displayed" shown on>> >> > > 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!!
> > >
> > >
> > >
> >
>
Brandon Potter Guest
-
Lau Lei Cheong #7
Re: Upload huge file size: "The page cannot be displayed" browser error
"Joe" <apngss@yahoo.com> ¦b¶l¥ó news:%23PFS20u8EHA.2608@TK2MSFTNGP10.phx.gbl
¤¤¼¶¼g...the> and> > 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>> > 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" isYes. Exactly.> error from web browser because web browser failed to connect to the server
> for that requested page. correct?
first,>When UploadForm.asp post data to
> UploadAction.asp, the web browser append the huge file in HTTP headeris> and at the same time, the web browser try to connect to UploadAction.jsp,Not exactly.> that what you mean?
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.
Lau Lei Cheong Guest
-
Lau Lei Cheong #8
Re: Upload huge file size: "The page cannot be displayed" browser error
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:Oye$D0y8EHA.2676@TK2MSFTNGP12.phx.gbl ¤¤¼¶¼g...Of> "This page cannot be displayed" = client timeout.
>
> Brandon
>
> "Joe" <apngss@yahoo.com> wrote in message
> news:ON%238CAv8EHA.3908@TK2MSFTNGP12.phx.gbl...> time> > one more, "The page cannot be displayed" means client-side web browser> > out, or web server time out? This is very important.
> >
> > please advise. thanks!!
> >
> > "Lau Lei Cheong" <leu_lc@yehoo.com.hk> wrote in message
> > news:#MYGkSu8EHA.3076@TK2MSFTNGP15.phx.gbl...> > > Try set a higher timeout value in machine.config.
> > >
> > > The error occurs because your browser is still sending the file out.time> > > course the browser cannot receive response from server at the sameon> > and> > > therefore determines the web server is not responding. Common problemUploadForm.asp> > news:%23hBTbHu8EHA.3708@TK2MSFTNGP14.phx.gbl> > > 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" <apngss@yahoo.com> ¦b¶l¥ó> > > ¤¤¼¶¼g...
> > > > I have an upload file operation in the web application.small> > 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 aon> go> > file> > > > size, it is fine.
> > > > But if I upload a huge file size more than 10MB, then it cannot even> > to> > > > UploadAction.asp.
> > > > After 30 seconds, it has error "The page cannot be displayed" shownsize> > 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>> >> > > > without problem.
> > > >
> > > > I don't have any hints now. any ideas?
> > > > please advise. thanks!!
> > > >
> > > >
> > > >
> > >
> > >
> >
>
Lau Lei Cheong Guest
-
lubanza69@hotmail.com #9
Re: Upload huge file size: "The page cannot be displayed" browser error
In the Microsoft documentation for ASP.NET and it is recommended that files are only uploaded in the region of 10-20 MB in size ([url]http://support.microsoft.com/kb/323246/EN-US/[/url]).
I assume you local machine is only running one of two web apps, which may explain why it isnt overloaded by the request.
************************************************** ********************
Sent via Fuzzy Software @ [url]http://www.fuzzysoftware.com/[/url]
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
lubanza69@hotmail.com Guest



Reply With Quote

