2 Replies Latest reply: Sep 29, 2015 9:25 AM by Sneha Agarwal RSS

    The maximum message size quota for incoming messages (65536) has been exceeded

      I am trying to get a list of list of source documents -

       

      ServiceInfo[] ServiceList = Client.GetServices(ServiceTypes.All);
      Guid QvsGuid = ServiceList[2].ID;
                  
      foreach (ServiceInfo info in ServiceList)
      {
            Console.WriteLine(info.Name);
      }
      
      QVSSettings QvsSettings = Client.GetQVSSettings(QvsGuid, QVSSettingsScope.Distribution | QVSSettingsScope.Documents);
      QDSSettings qdsSettings = Client.GetQDSSettings(QvsSettings.Distribution.QDSID, QDSSettingsScope.All);
      
      
      Guid qdsGuid = QvsSettings.Distribution.QDSID;
      
      //Get source documents  
      DocumentNode[] sourceDocuments = Client.GetSourceDocuments(qdsGuid);
      

       

      The last step fails with following error -

       

      An unhandled exception of type 'System.ServiceModel.CommunicationException' occurred in mscorlib.dll

       

      Additional information: The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

       

      I am not sure why I am getting this error - I don't think I have that many documents. Any suggestions?