Error When Get Result type DataTable form Web Service(ASMX)

I have problem in my android xamarin with asmx web service
when i return Data type of DataTable
befor is work fine but after i install new visaul studio 2015 not working my code is :
in web service (ASMX) :
[WebMethod]
public DataTable allchant(string password)
{
tablechantTableAdapter chanttable = new tablechantTableAdapter();
DataTable dt = new DataTable();

    if(password=="thismyapp")

        dt = chanttable.GetData();

    return dt;
}

////////////////////////////////////////////////////////////////////////////////////////////
in my xamarin android app :
private void Btn2_Click(object sender, System.EventArgs e)
{
songservice.ZawamelService ws = new songservice.ZawamelService();

        ws.allchantAsync("thismyapp");
        ws.allchantCompleted += Ws_allchantCompleted;
    }

    private void Ws_allchantCompleted(object sender, songservice.allchantCompletedEventArgs e)
    {
        DataTable dt = new DataTable();
        dt = e.Result;
    }

show my this error in action complete , erro in image

Sign In or Register to comment.