Questions tagged [maxstringcontentlength]
20 questions
14
votes
2 answers
WCF: maxStringContentLength always set to 8192
I need to change the maxStringContentLength to a value larger than 8192 but have not been successful in doing it. My WCF service will generate an exception if the amount of data it receives is greater than 8192 bytes. I have exhausted my searches…

Polaris431
- 481
- 1
- 5
- 14
14
votes
2 answers
Error Serializing String in WebService call
This morning I ran into an issue with returning back a text string as result from a Web Service call. the Error I was getting is below
************** Exception Text **************
System.ServiceModel.CommunicationException: Error in deserializing…

MikeScott8
- 720
- 2
- 10
- 17
6
votes
1 answer
Specifying a WCF binding when using ServiceRoute
I am currently registering a WCF service using the following code:
var factory = new DefaultServiceHostFactory();
RouteTable.Routes.Add(new ServiceRoute("XXXEndPoint", factory, IXXXEndPoint)));
This is all well and good however I also need to…

John
- 605
- 2
- 7
- 17
4
votes
1 answer
How to increase MaxStringContentLength on the server side for binary Http binding
I recently converted some Silverlight 3 WCF services to use the new binary http bindings. Long strings are often sent over to the server for deserialization in these services and I previously used to ensure the data could be read properly. …

James Cadd
- 12,136
- 30
- 85
- 134
3
votes
3 answers
Error calling a WCF REST service using JSON. length quota (8192) exceeded
I’m having a WCF REST service hosted in IIS using .NET 4 RC. The POST calls to the service are serialized using JSON. Everything works fine until the size of one of the DataMember (string) is longer than 8K. In this case I receive the error…
user272412
3
votes
2 answers
Transfer large of data using wcf service
When I try to transfer a large data in WCF, I get this error:
The formatter threw an exception while trying to deserialize the
message: There was an error while trying to deserialize parameter
http://tempuri.org/:requete. The InnerException…

user1805523
- 179
- 1
- 2
- 12
2
votes
0 answers
Is there any way to get a string over the 65535 limit
The max string size is 65535 bytes according to this and other SO posts:
https://learn.microsoft.com/en-us/cpp/c-language/maximum-string-length?view=msvc-160
I have been trying to google working around such as splitting strings into several and then…

humidontknow
- 21
- 1
2
votes
2 answers
WP7: Error Serializing String in WebService call
I receive this error when I try to send things to a Webservice with WP7.
The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation 'SubmitMobileData'. The maximum string…

SpoiledTechie.com
- 10,515
- 23
- 77
- 100
2
votes
1 answer
WCF MaxStringContentLength is never updated!
Coders, This problem is driving me crazy!! I have been doing extensive research for the last 2 days and I have no idea what is going on.
The Problem: As the title says, I have a WCF service that gets consumed by a silverlight application. The…

Eyad
- 13,440
- 6
- 26
- 43
2
votes
3 answers
InputFile.PostedFile.ContentLength Units of measurement
Please can you tell me the units measured by InputFile.PostedFile.ContentLength . I need to make sure the file is less than 500k.
Thanks.

Phil
- 1,811
- 9
- 38
- 60
1
vote
2 answers
Sending object to WCF service. MaxStringContentLength (8192 bytes) exceeded when deserializing
I created a simple WCF web service that has one method: SubmitTicket(flightticket ft, string username, string password)
On the client side, I have an application for filling out a form (a flight ticket) and sending it to this newly created web…

deadcom
- 13
- 1
- 1
- 3
1
vote
1 answer
WCF bindingConfiguration Issue
I'm getting the maxStringCount is exceeded error, and have read a ton on fixing the issue (that is, if you're using http bindings).
Problem for me, I'm using netTcpBinding. So I have no idea what to put in bindingConfiguration.. Here's my…
user724198
1
vote
1 answer
Issue with maxStringContentLength on WCF
I have inherited a WCF web service which is running ASP.Net 2 on IIS 7.
However, we have a problem when posting large amounts of data, it produces an error 400 Bad Request.
I've added element, as a trace is producing the following error
"There was…

Leslie Costar
- 11
- 3
1
vote
2 answers
ASP.NET web service maximum array length quota
I'm gettingg this error in an ASP.NET web service whene recieving a file on the client:
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…

Mahmood Dehghan
- 7,761
- 5
- 54
- 71
1
vote
1 answer
What does readerQuotas --> maxStringContentLength exactly refer to?
I have read on msdn that the attribute maxStringContentLength of the readerQuotas for a WCF client means:
A positive integer that specifies the maximum characters allowed in
XML element content. The default is 8192.
I am probably a bit thick…

ManOnAMission
- 1,023
- 1
- 12
- 31