title: Serialize dataset vb.net error
body: <p>I get this error when I try to Serialize my custom dataset.
  What am I doing wrong,  surly it should be simple?</p>
  
  <p>Thanks</p>
  
  <p>error
      A circular reference was detected while serializing an object of type 'System.Globalization.CultureInfo'.</p>
  
  <pre><code> Dim serializer As New JavaScriptSerializer()
              Dim arrayJson As String = serializer.Serialize(makeMYDataSET())
  
      Private Function makeMYDataSET() As DataSet
  
  
          ' Two DataTables.
          Dim table1 As DataTable = New DataTable("patients")
          table1.Columns.Add("name")
          'table1.Columns.Add("id")
          table1.Rows.Add("sam")
          table1.Rows.Add("mark")
          table1.Rows.Add("hjhkhkh")
  
          Dim table2 As DataTable = New DataTable("medications")
          'table2.Columns.Add("id")
          table2.Columns.Add("medication")
          table2.Rows.Add("atenolol")
          table2.Rows.Add("amoxicillin")
  
          ' Create a DataSet. Put both tables in it.
          Dim set1 As DataSet = New DataSet("office")
          set1.Tables.Add(table1)
          set1.Tables.Add(table2)
  
  
          Return set1
  
      End Function
  </code></pre>