User65893105 posted
Ive built a website using asp.net 3.5 and webforms. Ive implmented routing to get seo friendly URLs. Im now trying to call a WCF method from the clientside using ajax. On my dev box its working fine, but after uploading it to a hosted environment,
its stopped working, I get this error
NetworkError: 404 Not Found -
http://www.livenamehere.co.uk/AudioService.svc/GetAudio?artistId=459&_=1381479348121"
The service has been uploaded and ive modified the live web.config file to implement wcf
this is how im calling it
var webMethod = "http://www.livenamehere.co.uk/AudioService.svc/GetAudio";
$.ajax({
cache: false,
async: true,
type: "GET",
dataType: "json",
url: webMethod,
data: { artistId: $("#" + '<%= HiddenArtistID.ClientID %>').val() },
contentType: "application/json;charset=utf-8",
success: cb,
error: function (e) { alert(e.statusText); }
});
on my dev box I have this and it works fine
var webMethod = "http://localhost/Website/AudioService.svc/GetAudio";
can anyone tell me where Im going wrong ?