Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C#
hi i use C# web services with java when i send data it's work fine but
when i send byte[]>20k
Exception in thread "AWT-EventQueue-0" The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation 'simage'. 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 40290.
Posted 24-Apr-13 8:36am
ThePhantomUpvoter at 24-Apr-13 13:43pm
Okay so your error message is telling you want is wrong and what you need to do to correct it so what is your question and/or problem?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The error message does seem to be rather specific - it even explains what you have to do you fix the problem.
Given that you have been here for six years, you really should have been capable of working this out for yourself!
Rate this: bad
Please Sign up or sign in to vote.

Solution 4

if you use NetFrameWork 4.0, you need to remove "name=myBinding" . I don't know why, but it works.
Service Side:
  <binding maxReceivedMessageSize="2147483647">
   maxNameTableCharCount="2147483647" />
   <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
   <serviceMetadata httpGetEnabled="true"/>
   <!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
   <serviceDebug includeExceptionDetailInFaults="true"/>   
 <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />

Thanks you

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

  Print Answers RSS
0 OriginalGriff 685
1 Maciej Los 290
2 Richard Deeming 185
3 Suvendu Shekhar Giri 184
4 Abhinav S 166
0 Sergey Alexandrovich Kryukov 9,678
1 OriginalGriff 9,135
2 Peter Leow 5,082
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 2,606

Advertise | Privacy | Mobile
Web02 | 2.8.150327.1 | Last Updated 30 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100