If you have got your hands dirty with WCF, this is one of the error you will see sooner or later. “The maximum string content length quota (8192) has been exceeded while reading XML data.” WCF is complaining that the
Problem: This is one of the silly problem that does not provide any clue. The only message received at client while invoking service is “Object reference not set to an instance of an object”. If you debug the client and
Problem: WCF proxy class contains duplicate code (classes and types) or is incomplete class with broken code. Solution: Use Serializer option in SVCUtil svcutil <url> /out:class.cs /serializer:XmlSerializer That should do the trick. Happy Coding.
Problem: WCF wsdl schema location points to the machine name by default. This may not be ideal in a situation when the Client do not have access to the remote machine. Below is the example of the wsdl schema location