Hi,
Consuming wcf rest services using jquery ajax using IE getting error Access denied(Error seen in IE browser debbuger)
This is my code it's working fine in firefox and crome but not working in IE.
My wcf service is hosted in IIS.
var Employee = '{"EmployeeID": "10", "Employeename": "raju", "Designation": "SE", "Address": "OU", "Email": "mail@mail.com"}';
$.ajax({
type: "POST",
url: "http://192.168.1.17:8569/service1.svc/AddNewEmployee",
data: Employee,
contentType: "application/json; charset=utf-8",
datatype: "json",
crossDomain: true,
//processData: true,
success: function (xml) {
var obj = xml;
var txtArea = "";
for (var i = 0; i < obj.length; i++) {
txtArea += " " + obj[i].EmployeeID + " " + obj[i].Address + " " + obj[i].Designation + " " + obj[i].Email + " " + obj[i].Employeename;
txtArea += "<br/>";
}
$("#lbl3").html(txtArea);
},
error: function (err) {
alert("error=>" + err);
}
});
Please do the helpful
Raghunath