maxstringcontentlength

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 body of reply message for operation 'GetFilingTreeXML'. ---> System.InvalidOperationExcepti...

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. However, with the new binding I can't find the correct place to add the element: <custom...

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 described below indicating the MaxStringContentLength has been exceeded. The maxStringContentLengt...

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. ...