(413) Request Entity Too Large

As we know by default the limit to send data to our WCF Service is 4mb. But when we try to transfer the data more than 4mb it throws the exception something like that The remote server returned an unexpected response: (413) Request Entity Too Large.

To fix this exception you have to increase the size of WCF Service call to maximun size in web service Web Config file.

Please add the following image code in your WCF Config file.

WCF Service Layout

wcf service layout






WCF Service Web.Config Settings

wcf service config file settigns

If you face any problem then please comment, it will help you to figure it out.

Happy Coding..

Posted by | View Post | View Group