Failed to load resource: the server responded with a status of 500 (Internal Server Error)
23:05 01 Jun 2013

Currently im doing an asp.net website where im trying to get data from the webservice and display the data retrieved to the table. Below is the ajax.


For the webservice

        [WebMethod]
        [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
        public JsonDataTable createJsDataTable()
        {

        JsonDataTable jsDT = new JsonDataTable();

        List vl = new List();
        vl.Add("value 1");
        vl.Add("value 2");
        vl.Add("value 3");
        vl.Add("value 4");
        jsDT.add_Row(vl);

        return jsDT;
       }


Have been getting that error when i inspect the element but still dont get wheres the error. I have clicked the http://localhost:2179/CaregiverService.asmx/createJsDataTable from the inspect element in google chrome and it works fine. Hoping someone could help me solve it :x

ajax web-services