Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - request message size limit

 
 
Old 06-05-2007   #1 (permalink)
Marina Levit[MVP]


 
 

request message size limit

Hi,

Getting the following error calling a WCF service when passing a very long string (works fine for shorter ones)

The formatter threw an exeption while trying to deserialize the message: Error in deserializing body of request message for operation 'MakeCall'. 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. Line 1, position 8934.

In the client's config file, all the receive sizes are set appropriately, but there does not to be appear a setting for the request size, which makes sense. I have not been able to find such a setting in the server's config file (which is Web.config as we are hosting the service in IIS).


My System SpecsSystem Spec
Old 06-05-2007   #2 (permalink)
Scott Holman


 
 

Re: request message size limit

The maxStringContentLength can be found in your binding configuration. If you don't have a binding configuration you will need to create one.

For Example:

<bindings>
<wsHttpBinding>
<binding name="HttpWsCfg" messageEncoding="Mtom">
<readerQuotas maxStringContentLength="16600" />
<reliableSession ordered="false" enabled="false" />
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="Basic" />
<message clientCredentialType="UserName" establishSecurityContext="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>


"Marina Levit[MVP]" <someone@someplace.com> wrote in message news:%23josft4pHHA.3948@TK2MSFTNGP05.phx.gbl...
Hi,

Getting the following error calling a WCF service when passing a very long string (works fine for shorter ones)

The formatter threw an exeption while trying to deserialize the message: Error in deserializing body of request message for operation 'MakeCall'. 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. Line 1, position 8934.

In the client's config file, all the receive sizes are set appropriately, but there does not to be appear a setting for the request size, which makes sense. I have not been able to find such a setting in the server's config file (which is Web.config as we are hosting the service in IIS).

My System SpecsSystem Spec
Old 06-05-2007   #3 (permalink)
Marina Levit[MVP]


 
 

Re: request message size limit

Thank you! I missed that one.
"Scott Holman" <sholman@micros.com> wrote in message news:Oa0z%2304pHHA.3948@TK2MSFTNGP05.phx.gbl...
The maxStringContentLength can be found in your binding configuration. If you don't have a binding configuration you will need to create one.

For Example:

<bindings>
<wsHttpBinding>
<binding name="HttpWsCfg" messageEncoding="Mtom">
<readerQuotas maxStringContentLength="16600" />
<reliableSession ordered="false" enabled="false" />
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="Basic" />
<message clientCredentialType="UserName" establishSecurityContext="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>


"Marina Levit[MVP]" <someone@someplace.com> wrote in message news:%23josft4pHHA.3948@TK2MSFTNGP05.phx.gbl...
Hi,

Getting the following error calling a WCF service when passing a very long string (works fine for shorter ones)

The formatter threw an exeption while trying to deserialize the message: Error in deserializing body of request message for operation 'MakeCall'. 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. Line 1, position 8934.

In the client's config file, all the receive sizes are set appropriately, but there does not to be appear a setting for the request size, which makes sense. I have not been able to find such a setting in the server's config file (which is Web.config as we are hosting the service in IIS).

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Limit to Size of Event Sound Vista music pictures video
Limit download size Live Mail
Groups in Contacts: Size Limit? Vista mail
Inbox Size Limit Vista mail
File name size limit? Vista file management


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46