Click here to Skip to main content
15,889,877 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader.


C#
bindings>
			<webHttpBinding>
				<binding name="wsHttpBinding" closeTimeout="00:01:00"
						 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
						 allowCookies="false" bypassProxyOnLocal="false"
						 hostNameComparisonMode="StrongWildcard"
						 maxBufferSize="2147483647" maxBufferPoolSize="2147483647"
						 maxReceivedMessageSize="2147483647"
						 transferMode="Buffered"
						 useDefaultWebProxy="true">
					<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
                          maxArrayLength="2147483647"
                          maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
				</binding>
			</webHttpBinding>
		</bindings>



what is max size of MaxStringContentLength ?
Posted
Comments
chetan2020 9-Aug-13 1:15am    
its already working my code but when i increase my string then i getting this error so i want maximum size of it.
so what is max size for maxBufferSize,maxReceivedMessageSize etc or all

This is a common problem when working with WCF services. I keep this article handy from the
StackOverflow. One thing to note that there are settings both server side and client side that need to be modified.
 
Share this answer
 
Give same binding on server and on client side
otherwise you will get error..
 
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