jquery - Can't access data access layer on a wcf web service -
i calling web service using jquery ajax. getting internal server error.
[webget(responseformat=webmessageformat.json)] [operationcontract] public list<brandmodel> dowork(int brandid) { // here receive generic list of brandmodel calling static method fillmodels. list<brandmodel> models = da.supportdata.fillmodels(brandid); return models; }
i've tried omit statement calling data access layer , return generic list created within dowork method , worked.
Comments
Post a Comment