(413) Request Entity Too Large | uploadReadAheadSize

前端 未结 13 1456
迷失自我
迷失自我 2020-11-22 07:33

I\'ve written a WCF service with .NET 4.0, which is hosted on my Windows 7 x64 Ultimate system with IIS 7.5. One of the service methods has an \'object\' as arg

13条回答
  •  情话喂你
    2020-11-22 08:19

    I had the same problem and setting the uploadReadAheadSize solved it:

    http://www.iis.net/configreference/system.webserver/serverruntime

    "The value must be between 0 and 2147483647."

    It is easily set it in the applicationHost.config-fle if you don't want to do a cmd-thing.

    Its located in WindowsFOLDER\System32\inetsrv\config (2008 server).

    You must open it with notepad. Do a Backup of the file first.

    According to the comments in config the recommended way to unlock sections is by using a location tag:

    
        
            
        
    "
    

    So you can write in the bottom (since it doesn't exist before). I write maxvalue here - write your own value if you want.

    
        
            
            
        
    
    

    If you put it last before for example, you know where you have it.

    Hope that solves your problems. It was an SSL overhead issue for me, where too much post freezed the application, raising a (413) Request Entity Too Large error.

提交回复
热议问题