Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
Can anybody suggest me regarding this query....

When i run my windows service, i am getting the error like this,\


" an error while trying to deserialize parameter :GetApplicationResult. The InnerException message was 'There was an error deserializing the object of type TeamsSQWinService.BAServiceReference.AppInfo. 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.'. Please see InnerException for more details."

XML
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <appSettings>
    <add key="SqlCon" value="Connectionstring" />
    <add key="OraCon" value="Connectionstring"" />
  </appSettings>
  <system.serviceModel>
    <bindings>
        <customBinding>
            <binding name="CustomBinding_BAService">
                <binaryMessageEncoding />
                <httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />
            </binding>
        </customBinding>
    </bindings>
    <client>
      <endpoint address="http://localhost:1813/BAService.svc" binding="customBinding"
        bindingConfiguration="CustomBinding_BAService" Myservicereference
        name="CustomBinding_BAService" />
    </client>
  </system.serviceModel>
</configuration>
Posted

1 solution

try increasing maxBufferSize and maxReceivedMessageSize.
If it doesnt work, try using basicHttpBinding instead of custom binding.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900