Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

request message size limit

Update your Vista Drivers Update Your Drivers Now!!
 
 
Thread Tools Display Modes
Old 06-05-2007   #1 (permalink)
Marina Levit[MVP]
Guest


 

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
Guest


 

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]
Guest


 

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
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit download size kencl Live Mail 14 06-05-2008 10:06 AM
Groups in Contacts: Size Limit? sc_meteors Vista mail 1 10-31-2007 04:03 PM
Inbox Size Limit Andersony Vista mail 6 05-18-2007 06:28 AM
File names size limit? Alejandro Vista General 21 03-11-2007 03:42 PM
File name size limit? Alejandro Vista file management 8 03-10-2007 11:30 PM


Update your Vista Drivers Update Your Vista Drivers Now!!

Vistax64.com 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 2005-2008
Page generated in 0.25842 seconds with 10 queries