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 - MaxArrayLength property on the XmlDictionaryReaderQuotas

 
 
Old 04-19-2007   #1 (permalink)
Alhambra Eidos Kiquenet


 
 

MaxArrayLength property on the XmlDictionaryReaderQuotas

Hello misters,

I have an WCF service, and I call to method of contract, and its appears the
following error:


http://schemas.microsoft.com/net/200...spatcher/fault
Code : System.ServiceModel.FaultCode
Reason : The formatter threw an exception while trying to deserialize the
message: There was an error while trying to deserialize parameter
http://TINSA.WCF:ObtenerImagenResult. The InnerException message was 'There
was an error deserializing the object of type
TINSA.Entidades.Documentacion.Imagen. The maximum array length quota (16384)
has been exceeded while reading XML data. This quota may be increased by
changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object
used when creating the XML reader. Line 1, position 80734.'.

Any help will be appreciated,

thanks in advance, greetings.

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net


My System SpecsSystem Spec
Old 04-24-2007   #2 (permalink)
Fresh Bee


 
 

RE: MaxArrayLength property on the XmlDictionaryReaderQuotas

Hi,

I have the same pblm when i transferring string xml using WCF..

In Client C# Code, I added the

Basichttpbinding.ReadersQuoate.MaxStringContentLength = 16384.

but i still get the same pblm..did u sort out the pblm..plz help me to solve
that..


Thanks

Suresh Kumar


"Alhambra Eidos Kiquenet" wrote:

> Hello misters,
>
> I have an WCF service, and I call to method of contract, and its appears the
> following error:
>
>
> http://schemas.microsoft.com/net/200...spatcher/fault
> Code : System.ServiceModel.FaultCode
> Reason : The formatter threw an exception while trying to deserialize the
> message: There was an error while trying to deserialize parameter
> http://TINSA.WCF:ObtenerImagenResult. The InnerException message was 'There
> was an error deserializing the object of type
> TINSA.Entidades.Documentacion.Imagen. The maximum array length quota (16384)
> has been exceeded while reading XML data. This quota may be increased by
> changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object
> used when creating the XML reader. Line 1, position 80734.'.
>
> Any help will be appreciated,
>
> thanks in advance, greetings.
>
> --
> http://www.alhambra-eidos.es/web2005/index.html
> www.kiquenet.net
>

My System SpecsSystem Spec
Old 04-24-2007   #3 (permalink)
Alhambra Eidos Kiquenet


 
 

RE: MaxArrayLength property on the XmlDictionaryReaderQuotas

Use attribute maxArrayLength with a big value, for example ="163840000"

<binding ... maxArrayLength="163840000"

<wsHttpBinding>
<!-- SERVICIO VALORACIONES -->
<binding name="WSHttpBinding_IValoracion" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00"
sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false"
hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="100000000"
messageEncoding="Text" textEncoding="utf-8"
useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192"

maxArrayLength="163840000" <============== HERE

maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Message">
<transport clientCredentialType="Windows"
proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows"
negotiateServiceCredential="true"
algorithmSuite="Default" establishSecurityContext="true" />
</security>
</binding>

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net



"Fresh Bee" wrote:

> Hi,
>
> I have the same pblm when i transferring string xml using WCF..
>
> In Client C# Code, I added the
>
> Basichttpbinding.ReadersQuoate.MaxStringContentLength = 16384.
>
> but i still get the same pblm..did u sort out the pblm..plz help me to solve
> that..
>
>
> Thanks
>
> Suresh Kumar
>
>
> "Alhambra Eidos Kiquenet" wrote:
>
> > Hello misters,
> >
> > I have an WCF service, and I call to method of contract, and its appears the
> > following error:
> >
> >
> > http://schemas.microsoft.com/net/200...spatcher/fault
> > Code : System.ServiceModel.FaultCode
> > Reason : The formatter threw an exception while trying to deserialize the
> > message: There was an error while trying to deserialize parameter
> > http://TINSA.WCF:ObtenerImagenResult. The InnerException message was 'There
> > was an error deserializing the object of type
> > TINSA.Entidades.Documentacion.Imagen. The maximum array length quota (16384)
> > has been exceeded while reading XML data. This quota may be increased by
> > changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object
> > used when creating the XML reader. Line 1, position 80734.'.
> >
> > Any help will be appreciated,
> >
> > thanks in advance, greetings.
> >
> > --
> > http://www.alhambra-eidos.es/web2005/index.html
> > www.kiquenet.net
> >

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Set Focus To Specific Property In Property Grid .NET General
How do I use the property of a property? PowerShell
Value under the CPU property? PowerShell


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