Note: if an operation fails with error "the maximum message size quota for incoming messages has been exceeded," you generally need to increase the MaxBufferSize, not the MaxReceivedMessageSize, despite what the error message says.
Configure using appSettings key "ServiceHost:MaxReceivedMessageSize".