Questions tagged [readerquotas]

readerQuotas is a property of Windows Communication Foundation (WCF) Web services. By configuring its values, it can be used to place restrictions on the size and complexity of SOAP messages, which are processed by a WCF endpoint.

These restrictions are useful to protect against a type of Denial of Service (DOS) attacks where message complexity, rather than simply length, is used to bog down endpoint processing resources. The properties that define these constraints, as well as their default values, are listed below:

17 questions
27
votes
2 answers

WCF service The maximum array length quota (16384) has been exceeded

I have a wsf service and a client application. While trying to communicate the client and the service I've gotten the following message: "The formatter threw an exception while trying to deserialize the message: There was an error while trying to…
Dmitry Baranovsky
  • 731
  • 1
  • 6
  • 8
18
votes
3 answers

Modify endpoint ReaderQuotas programmatically

I have a dynamic client to a service. How can i change the ReaderQuotas property of it's endpoint binding? I tried like this but it doesn't work ... DynamicProxyFactory factory = new DynamicProxyFactory(m_serviceWsdlUri); foreach (ServiceEndpoint…
Adrya
  • 3,427
  • 8
  • 31
  • 29
9
votes
2 answers

The maximum string content length quota (8192)

Error in deserializing body of reply message for operation 'CreateTransactionEntity'. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength…
SoftwareSavant
  • 9,467
  • 27
  • 121
  • 195
5
votes
2 answers

Maximum Array Length Quota Exception in WCF

I am writing a WCF service to upload files but it throws an exceptions when byte array has more than 16384 elements. This is the exception detail: The formatter threw an exception while trying to deserialize the message: Error in deserializing…
Nima M
  • 718
  • 10
  • 18
3
votes
1 answer

What is WCF readerQuotas and maxArrayLength?

Can anyone explain WCF to me? Specifically maxArrayLength. According to MSDN: maxArrayLength A positive integer that specifies the maximum allowed array length of data being received by Windows Communication Foundation (WCF) from…
Aditi
  • 1,188
  • 2
  • 16
  • 44
2
votes
1 answer

What happens to messages sent over MSMQ and WCF that exceed the receivers quota?

If I use WCF to send a message over e.g. Http, and the message is too large for the recipient, I get a fault at the sender, and can take action. If I use WCF to send a message over MSMQ (non-transactional) and the message is too large for the…
Rob
  • 4,327
  • 6
  • 29
  • 55
2
votes
1 answer

Custom Message Encoder in WCF with support for ReaderQuotas

Found the answer here (last post): http://social.msdn.microsoft.com/Forums/eu/wcf/thread/f5c0ea22-1d45-484e-b2c0-e3bc9de20915 I'm having one last issue with the implementation of my custom (TextOrMtomEncoder), which is the implementation of…
kipusoep
  • 2,174
  • 6
  • 24
  • 34
1
vote
1 answer

Problems with readerQuotas in ASP.NET application

I have an ASP.NET 4.0 Application. A webservice is hosted using a .svc file linking a source (service implementation). The web service .svc file is located inside a directory WebServs in the application root directory: MyApp/WebServs/mysvc.svc. The…
Andry
  • 16,172
  • 27
  • 138
  • 246
1
vote
1 answer

SharePoint 2010 WCF Service MaxItemsInObjectGraph problem

I have been encountering issues with a custom WCF service deployed to SharePoint 2010. I'm receiving the following error when trying to import some data into the client: 'Maximum number of items that can be serialized or deserialized in an object…
Matt Clark
  • 71
  • 5
1
vote
2 answers

WCF - Increase ReaderQuoatas on REST service

I have a WCF REST Service which accepts a JSON string One of the parameters is a large string of numbers This causes the following error - which is visible by tracing and using SVC Trace Viewer There was an error deserializing the object of type…
ChrisCa
  • 10,876
  • 22
  • 81
  • 118
1
vote
1 answer

Why WCF class Binding doesn't have member ReaderQuotas?

I'm wondering why the class Binding in WCF doesn't have a property ReaderQuotas, while its subclasses BasicHttpBinding and WSHttpBinding does. This fact makes coding a little hard. For me, I use below code to extract binding information from MEX…
Morgan Cheng
  • 73,950
  • 66
  • 171
  • 230
1
vote
1 answer

Unrecognized element 'readerQuotas' on BasicHttpBinding

I have a problem with my WCF service config, I get the error: "The formatter threw an exception while trying to deserialize the message .... the maximum string content length quota (8192) has been exceeded....." So after searching at google i found…
Amit Shadadi
  • 617
  • 2
  • 7
  • 20
1
vote
1 answer

WCF maxDepth

In a WCF message, is maxDepth calculated beginning with the soap envelope element? For example, is the following message considered 5 levels deep?
gravidThoughts
  • 613
  • 5
  • 18
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
1
vote
0 answers

WCF post file limit

I have WCF service hosted in SharePoint that works fine some time ago, but it doesn't work now and I don't understand why it happened. I try post file to the service and get error 400(badrequest) if file less 16Kb no errors. I change my config file…
Alexey
  • 11
  • 2
1
2