Error retrieving data from database at 000webhost using c# program

I try to access mysql database using php and c#. I write the code as below, and “Root element is missing” error is occured. I just want to ask why? and is the code will work?

 private void button1_Click(object sender, EventArgs e)
        HttpWebRequest request = (HttpWebRequest)WebRequest.Create("");

        HttpWebResponse response = (HttpWebResponse)request.GetResponse();
        StreamReader input = new StreamReader(response.GetResponseStream());

        DataSet dsTest = new DataSet();
        dataGridView1.DataSource = dsTest.Tables[0];

Source: mysql

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.