The error below comes up when I try to send 8kb message across WCF.
System.ServiceModel.FaultException`1 was unhandled
Message="The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:encrptedString. The InnerException message was 'There was an error deserializing the object of type System.String. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader
The resolution here is to add maxReceivedMessageSize to binding configuration as below (both client and service):
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IPayloadSvc" maxReceivedMessageSize="2147483647" >
<readerQuotas
maxDepth="2147483647"
maxStringContentLength="2147483647"
maxArrayLength="2147483647"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647" />
</binding>
</wsHttpBinding>
</bindings>