ASP.net Upload Limit Server timeout

杀马特。学长 韩版系。学妹 提交于 2019-12-07 03:44:27

Are you using IIS 7 with integrated pipeline perhaps? If so, you may need to add some settings to your system.webserver section:

<system.webServer>
    <security>
        <requestFiltering>
            <requestLimits maxAllowedContentLength="102400"/>
        </requestFiltering>
    </security>
...
</system.webServer>

You need this in addition to your httpRuntime settings.

It turns out it was not to do with the Web.config or the metabase.xml.

The problem was that the AppPool for the website had a virtual memory limit that was too low and I guess the site Pool was being recycled before the file had finished uploading.

For the time being I've removed the limit. I'll need to read up before setting it again.

Read this: link

It seems server 2008 has a known error on this (IIS7 has a max. upload restriction you have to manually edit via the web.config of the specific web app

I'm currently working on this fix, locally now the upload works (respecting the set max. upload limit), except via Internet (passed the ISA) it still doesn't.

I'm trying to figure out if I also have to edit the WFE's to make it work via the Internet, but not sure if this fixed my problem or has anything to do with it.

  • Roberto
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!