Home » Interview Q&A » Transfer large file using WCF

Transfer large file using WCF

The remote server returned an unexpected response: (413) Request Entity Too Large.
WCF method Overloading

Transfer large file using WCF

Hello friends, today I will explain you regarding common problem of WCF configuration for how to transfer large file using WCF. We will create an example from scratch to understand each configurations. Some users also get “There was no endpoint listening at http://localhost:57908/Service1.svc that could accept the message. This is often caused by an incorrect address or SOAP action.“ kind of error. We could also resolve this kind of errors code.

First of all create “WCF Service Application” project from Visual studio. Add below code:
In IService1.cs

In Service1.svc.cs

In Web.config

Now its time to create client and call “GetFileData” method from Client application.

This is how we could upload large file upto 2 GB using WCF from client.

Download Demo code for Transfer large file using WCF



Hello friends, My self Dhruv Sheth, I have more than 6 years of Industrial experience as a Software Developer. In my career I got chance to work with asp.net, c#,Web API, JavaScript, JQuery, WPF, WCF , Windows Application, PostScript, vb.net, GhostScript etc. So I have decided to share my knowledge with everyone and finally I have come up with TechnoThirsty.

Leave a Reply

Your email address will not be published. Required fields are marked *


Time limit is exhausted. Please reload CAPTCHA.

The content is copyrighted to technothirsty.com and may not be reproduced on other websites without permission from the owner.You may contact us using the information below.