I want to access a SSL enabled WCF service from asp.net 2.0 application. Site was hosted on IIS 7.
Here is the Code
function getCourse() {
$.ajax({
type: "GET",
url: "https://website.com/service.svc/task",
processData: false,
contentType: "application/json; charset=utf-8",
dataType: "json",
timeout: 7000,
username: "someusername",
password: "somepassword",
success: function (data) { alert("success"); },
error: function (xhr, status, error) { alert("error"); }
});
};
I get 401 error, I didn't do any configuration in iis or webconfig related to the ssl access? Am I missing anything here? or the fact that I'm using asp.net 2.0 application cause the error?