Hi i have created a WCF service and the client is in .net2.0 framework. I access the WCF service as a webservice in .net2.0. by setting its binding type to BasicHttpBinding.
I am passing a byte[ ] array to the service from the client. But the trouble is that if the size of the byte[ ] array goes anything beyond 18kb it gives the following error: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:Contents. The InnerException message was 'There was an error deserializing the object of type System.Byte[]. 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 48027.'. Please see InnerException for more details I looked up the net and found the solution if the client was created in .net3.5. You just increase the maxArraySize value to a larger value in the client and server web.config files and it works! However my client is in .net2.0 and i cant locate any <binding> tag in the web.config file. Someone please suggest me a solution here. Thanks for your Help!! Cheers! Saket Shriwas
