I have an application which has been using JQuery AJAX and VB.NET Web Methods just fine in an earlier version of IIS. I have recently moved over to IIS7 and now i am getting ajax errors. It seems like no data is getting sent to the web methods...
Here is a code snippet of my ajax:
And i just fill in the function with my needed parameters for each us of it.Code:function doAjax(_url, _name, _dataToSend, _sFunc){
$.ajax({
type: "POST",
async: false,
url: _url + "/" + _name + "/",
data: "{'text':'" + _dataToSend + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg){ _sFunc(msg.d); },
error:function (xhr, ajaxOptions, thrownError){
if(SHOW_AJAX_ERRORS) alert(_name + "_ERROR ::: " + xhr.status);
}
});
}
Anyways, the problem is, is that it is always going to the error function.
Anyone have any idea???
Thanks
