consuming wcf rest services using jquery ajax using IE getting error Access denied [Resolved]

Posted by raghuavulapalli-25110 under WCF on 1/2/2014 | Points: 10 | Views : 4136 | Status : [Member] | Replies : 1
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


Responses

Posted by: kgovindarao523-21772 on: 1/2/2014 [Member] [MVP] Bronze | Points: 50

Up
0
Down

Resolved
Hi,

Try to Reset the settings of IE:
go to: Tools => Internet Options => Advanced tab => Reset


Thank you,
Govind

raghuavulapalli-25110, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response