(413) Request Entity Too Large | uploadReadAheadSize

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

    I was receiving this error message, even though I had the max settings set within the binding of my WCF service config file:

    
            
    
                     
            
    
    

    It seemed as though these binding settings weren't being applied, thus the following error message:

    IIS7 - (413) Request Entity Too Large when connecting to the service.

    .

    The Problem

    I realised that the name="" attribute within the tag of the web.config is not a free text field, as I thought it was. It is the fully qualified name of an implementation of a service contract as mentioned within this documentation page.

    If that doesn't match, then the binding settings won't be applied!

    
      
      
        
      
    
    

    I hope that saves someone some pain...

提交回复
热议问题