I have two simple projects in a single solution Visual Studio, to understand how jQuery ajax-request. One of them - a web service, and the second - a project that uses the Web service.
You can download a very small project from here. Download project file
As you can see in the project, whenever I try to call a web service, an internal server 500 error occurs.
In chrome, I see the following warning (executed by the Error function of an Ajax call)

Help me find the problem.
EDIT:
function btnClick() { debugger; var txtValue = $('#txtValue'); var text = txtValue.val(); // // $.ajax({ url: "http://localhost:12000/ExampleJsonWS.asmx/getValue", type: "POST", dataType: "json", data: "{" + txtValue.val() + "}", timeout: 30000, async: false, contentType: "application/json; charset=utf-8", success: function (data) { debugger; alert(data); return data; }, error: function (result) { debugger; //alert(e); alert(result.status + ' ' + result.statusText); } }); }
source share