title: Error during serialization or deserialization using the JSON JavaScriptSerializer.
body: <p>Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.</p>
  
  <pre><code>public string MemberDetail(string Code)
      {
          String res = "";
          SortedList sd = new SortedList();
          sd.Add("@mode", "MemberDetail");
          sd.Add("@Code", Code);
          SqlDataReader dr = erp.GetDataReaderSP("[Demo]", sd);
          DataTable dt = new DataTable();
  
          dt.Load(dr);
          Synchr[] obj = new Synchr[dt.Rows.Count];
          if (dt.Rows.Count &gt; 0)
          {
              for (int i = 0; i &lt; dt.Rows.Count; i++)
              {
  
                  obj[i].DemoName = Convert.ToInt32(dt.Rows[i]["Name"].ToString());
              }
          }
  
          return new JavaScriptSerializer().Serialize(obj);
      }
  </code></pre>