|
| MaxStringContentLength Won't Change From 8192 |
 |
Fri, 28 Mar 2008 14:47:01 +000 |
I have a WCF that spawns this error: Error in deserializing body of request
message for operation 'Update'. 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.
However, when I increase the MaxStringContentLength property in the web.config
file, the quota of 8192 has not changed. Here is my ServiceModel section out of
the web.config file.<system.serviceModel>
<client>
<endpoint
address="http://bsc1smstdb01.hca.corpad.net/SessionStateWCF/Service1.svc&qu
ot;
binding="wsHttpBinding"bindingConfiguration="WSHttpBinding_IServi
ce1"
contract="IService1"name="WSHttpBinding_IService1">
<identity>
<dnsvalue="bsc1smstdb01" />
</identity>
</endpoint>
</client><bindings>
<wsHttpBinding>
<bindingname="WSHttpBinding_IService1"closeTimeout="00:01:00&q
uot; openTimeout="00:01:00"receiveTimeout="00:10:00"
sendTimeout="00:01:00"
bypassProxyOnLocal="false"transactionFlow="false"
hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288"maxReceivedMessageSize="500000"
messageEncoding="Text"
textEncoding="utf-8"useDefaultWebProxy="true"
allowCookies="false">
<readerQuotasmaxDepth="32"maxStringContentLength="16384"
maxArrayLength="16384"
maxBytesPerRead="4096"maxNameTableCharCount="16384"
/><reliableSessionordered="true"inactivityTimeout="00:10:00
" enabled="false" /> <securitymode="Message">
<transportclientCredentialType="Windows"proxyCredentialType="N
one" realm="" />
<messageclientCredentialType="Windows"
negotiateServiceCredential="true"
algorithmSuite="Default"establishSecurityContext="true"
/>
</security>
</binding>
</wsHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behaviorname="SessionStateWCFBehavior">
<serviceDebugincludeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
|
| Post Reply
|
|
|
|
|
|
|
|
|
|