How to increase maxReceivedMessageSize and maxBufferSize parameters in app.config file to 2000000 before running the application.
binding name="BindingName" maxReceivedMessageSize="2097152" maxBufferSize="2097152" maxBufferPoolSize="2097152"
on client side and server side