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

Ask a Question related to ASP Components, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. "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...
    2. 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...
    3. 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...
    4. "page cannot be displayed" (addendum)
      BTW: We're assuming the user has flash 6.0 plugin and above. Thanks again
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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
    > 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" <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. 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!!
    > >
    > >
    > >
    >
    >

    Joe Guest

  6. #5

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

    Joe Guest

  7. #6

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

    Brandon Potter Guest

  8. #7

    Default 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 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.


    Lau Lei Cheong Guest

  9. #8

    Default 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...
    > "This page cannot be displayed" = client timeout.
    >
    > Brandon
    >
    > "Joe" <apngss@yahoo.com> wrote in message
    > news:ON%238CAv8EHA.3908@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" <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.
    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

  10. #9

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139