Is there any memory restrictions on an ASP.Net application?

后端 未结 5 515
广开言路
广开言路 2020-12-20 05:19

I have an ASP.Net MVC application that allows users to upload images. When I try to upload a really large file (400MB) I get an error.

I assumed that my image proces

5条回答
  •  心在旅途
    2020-12-20 06:11

    There can be memory limits configured in either the web.config or machine.config, or both.

    In web.config the section is:

    
    

    In machine.config the section can also be the httpRunTime section, similar to:

    
    

    The aspnet process can also be limited to a percentage of the total memory using the processModel section, see:

    http://msdn.microsoft.com/en-us/library/7w2sway1.aspx

    I've encountered similiar problems to the one you described cause by those settings.
    In particular the ProcessModel memorylimit attribute.

提交回复
热议问题