Support forums

Live Support, Chat and HTML Editor
    
Welcome to Support forums Sign in | Join | Help Messenger
in Search

IIS 7 Request Limit Issue

Last post 07-17-2008, 8:37 AM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  07-10-2008, 1:00 PM 42105

    IIS 7 Request Limit Issue

     

    Hi, I try to upload a file where the size is bigger than the max allowed content lenght in IIS 7 Setting. (I use ASP.NET AJAX)
    <requestLimits maxAllowedContentLength="4000000"/>

    When I submit a file, the progress bar appear and nothing happen. I can see in Fiddler the following message for the FIRST request:

    </head>
    <body>
    <div id="header"><h1>Server Error</h1></div>
    <div id="content">
    <div class="content-container"><fieldset>
    <h2>404 - File or directory not found.</h2>
    <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
    </fieldset></div>
    </div>
    </body>
    </html>

    After that, my page submit a request to the server every second.
    In the request header I can see:  UseUploadModule: CheckUploadStatus
    and the received response is:
     
    HTTP/1.1 200 OK
    Server: Microsoft-IIS/7.0
    X-Powered-By: UrlRewriter.NET 2.0.0
    X-Powered-By: ASP.NET
    Date: Fri, 11 Jul 2008 05:12:37 GMT
    Content-Length: 9
    JSON:null

    I don't have choice to click the cancell button. I would like to notify the user about the file size.

  •  07-10-2008, 1:14 PM 42107 in reply to 42105

    Re: IIS 7 Request Limit Issue

    Stebo,
     
    Try editing applicationHost.config.

    Edit %windir%\System32\inetsrv\config\applicationHost.config.

    To allow separate applications to define their own deviations from the safety configuration, replace:

    < section name = "requestFiltering" overrideModeDefault = "Deny" />

    With:

    < section name = "requestFiltering" overrideModeDefault = "Allow" /> 


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  07-10-2008, 1:47 PM 42113 in reply to 42107

    Re: IIS 7 Request Limit Issue

    It does'nt work.
    The default setting in my ApplicationHost.config is
    <section name="requestFiltering" overrideModeDefault="Allow" />
  •  07-17-2008, 8:37 AM 42292 in reply to 42105

    Re: IIS 7 Request Limit Issue

    HI Stebo,
     
    Try editing applicationHost.config.
    Edit %windir%\System32\inetsrv\config\applicationHost.config.
    locate the "<requestFiltering>" section
    add  <requestLimits maxAllowedContentLength="2000000000" /> to "<requestFiltering>" section
    note:2000000000 is 2GB

View as RSS news feed in XML