Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

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>

"Service '<your service name>' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element."}

 

This error message looks so vague which sometimes you only have to make sure that your service name (or service namespace if you're using AppFabric Service Bus) is correctly spelled. 

HTH!