I am using jQuery ajax to call a serverside asmx service. My client call is looking like this:
$.ajax({
type: "POST",
url: "/Products.asmx/GetProducts",
data: "{'searchString':'" + $("#txtSearch").val() + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) { ListProducts(data, $scope); },
error: function (data) { HandleError(data); }
});
In most situations it works just perfect. My problem is that in some situations when an error occur i will only receive the error: 'There was an error processing the request'. I would like to get the actual error back to the client. Even in fiddler I can only see the mentioned error message.
Hope someone here can help me.