Click here to Skip to main content
15,922,894 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi this is lakshmana rao, i have an web page that redirects a large file uploads to the folder in my virtual directory. here i am getting an error like this
CSS
HTTP Error 404.13 - Not Found
The request filtering module is configured to deny a request that exceeds the request content length.

i am using code like this
<pre lang="c#">flupnewmessage.SaveAs(Server.MapPath("~/messages/" +
                                       flupnewmessage.FileName));


And i have change my web.config file like this
HTML
<system.web>
    <sessionstate mode="InProc" timeout="3"></sessionstate>
    <httpruntime executiontimeout="3000" maxrequestlength="102400" /></system.web>

<system.webserver>
    <security>
      <requestfiltering>
        <requestlimits maxallowedcontentlength="26214400">          
        </requestlimits>
      </requestfiltering>
    </security>
</system.webserver>

And my IIS limits are also cheged to 20000

Still i get the same error. can any one guide me how to upload large file.
Posted

1 solution

 
Share this answer
 
Comments
RaisKazi 21-Aug-11 1:35am    
Nice link. My 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900