I cannot get to work a wsDualHttpBinding endpoint on my WCF service. I'm facing this problem on the client.
I get an exception that suggests to increment MaxArrayLength from 16384 to allow to read the whole xml data.
I tried the following configuration:
<system.serviceModel>
<bindings>
<wsDualHttpBinding>
<binding name="MyBinding" maxReceivedMessageSize="2147483647" />
</wsDualHttpBinding>
</bindings>
<client>
<endpoint name="WSDualHttpBinding_IDataService" binding="wsDualHttpBinding" bindingConfiguration="MyBinding"
address="http://localhost:8733/DataProvider/" contract="DataStorageService.IDataService" >
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</client>
But the above configuration seems to be ignored.
I instantiate my client like this:
var instanceContext = new InstanceContext( new CallbackHandler() );
_clientService = new DataServiceClient( instanceContext );
and i read somewhere that these line of codes override the configuration in app.config; if that't the problem, how can i increment quotas?
Any help appreciated.