We have a problem with metadata exchange during proxy class generation with svcutil. This problem is closely related with size of file, that contains ServiceContract definition (for example, there is no error if some FaultContracts are commented)
Error: Cannot obtain Metadata from http://localhost/VClassWebService/vcservice.svc/mex
If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address. For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.
WS-Metadata Exchange Error
Metadata contains a reference that cannot be resolved: 'http://localhost/VClassWebService/vcservice.svc/mex'.
There is an error in XML document (1, 215447).
The maximum nametable character count quota (16384) has been exceeded while reading XML data. The nametable is a data structure used to store strings encountered during XML processing - long XML documents with non-repeating element names, attribute names and attribute values may trigger this quota. This quota may be increased by changing the MaxNameTableCharCount property on the XmlDictionaryReaderQuotas object used when creati
View Complete Post