![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| 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 Specs![]() |
| | #2 (permalink) |
| 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 Specs![]() |
| | #3 (permalink) |
| 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 Specs![]() |
| 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 |