in

ASP.NET Weblogs

Phil Scott's WebLog

Quite exciting this computer magic

404 Errors with FileUpload with IIS7

I was getting some 404 errors while using the FileUpload control. I tested it out on my local machine and  using

<system.web>
        <httpRuntime maxRequestLength="256000"/> <!-- request length is in kilobytes -->
</system.web>

worked fine. But once I moved it onto IIS7 everything started freaking out. Turns out IIS7 look for a different setting:

    <system.webServer>
        <security>
            <requestFiltering><requestLimits maxAllowedContentLength="262144000" /></requestFiltering> <!-- maxAllowedContentLength is in bytes. Defaults to 30,000,000 -->
        </security>
    </system.webServer>

My searches really only directed me to modifying the system.web, so hopefully this will help someone out.

Comments

 

Brannon said:

Dude. You rock. How the heck did you figure this out?

March 6, 2009 12:42 PM
 

daria said:

ncq3Lv Gra7noI59Unral92Bb7wf

August 18, 2009 10:37 PM

Leave a Comment

(required)  
(optional)
(required)  
Add