(413) Request Entity Too Large | uploadReadAheadSize

前端 未结 13 1461
迷失自我
迷失自我 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:15

    I was having the same issue with IIS 7.5 with a WCF REST Service. Trying to upload via POST any file above 65k and it would return Error 413 "Request Entity too large".

    The first thing you need to understand is what kind of binding you've configured in the web.config. Here's a great article...

    BasicHttpBinding vs WsHttpBinding vs WebHttpBinding

    If you have a REST service then you need to configure it as "webHttpBinding". Here's the fix:

    
    
    
       
        
          
       
    
    

提交回复
热议问题