Hi
I am trying to save save a fairly large string to the database. I send the required information to the server but I get the following error:
There was an error deserializing the object of type AASC.DAL.Types.EventDTO. 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.
I add the following to the relevant section of my service's web.config:
<textMessageEncoding>
<readerQuotas maxStringContentLength=”2147483647″/>
</textMessageEncoding>
Now, my service doesn't compile. it builds fine with no errors, but gives me the following error:
Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata.
Here is the serviceModel section of my web.config:
<bindings>
<customBinding>
<binding name="AASC.DAL.AASCData.customBinding0">
<binaryMessageEncoding />
<httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />
<textMessageEncoding>
<readerQuotas maxStringContentLength="2147483647" />
</textMessageEncoding>
</binding>
</customBinding>
</bindings>
As soon as I remove that attribute from my web.config it works fine, but with the string limit at 8192.
Any suggestions?