网站不允许大文件上传

Rob*_*ert 1 asp.net iis iis-7

我有一个在IIS 6上运行的ASP.NET网站,效果很好.我们允许客户上传大文件(50MB +),没有任何问题.我们最近移动了(我的公司),我们的网站也被移到了异地(在他们在我们自己的建筑物的服务器上之前),我们不得不从IIS 6切换到IIS 7.自从采取行动,我们的网站赢了不允许我们的客户传输大文件.我测试了较小的文件(<10MB)并且上传速度很好,但是当我尝试超过10MB的时候,我得到404错误:

404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

我们的web.config中已经有以下内容:

<httpRuntime maxRequestLength="1321600" />
Run Code Online (Sandbox Code Playgroud)

我错过了IIS 7中的设置吗?

bob*_*bek 8

您应该能够从web.config更改此设置:

<system.webServer>
        <security>
            <requestFiltering>
                <requestLimits maxAllowedContentLength="524288000"/>
            </requestFiltering>
        </security>
</system.webServer>
Run Code Online (Sandbox Code Playgroud)

更多信息:http://support.microsoft.com/kb/942074/