![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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) |
| | 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) |
| | 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 | |
| |
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 | |||