Im trying to call a method in a webservice from a web page (webforms) and it just isnty working, Im getting this error
NetworkError: 500 Internal Server Error calling a webservice asp.net
heres the clientside code
function CallService() {
var webMethod = "http://localhost/Website/WebServiceAudio.asmx/GetAudio";
var parameters = '{artistId: ' + $("#HiddenArtistID").val() + '}';
$.ajax({
type: "POST",
url: webMethod,
crossDomain: false,
data: parameters,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: OnSuccess,
error: OnError
});
}
and the serverside in the webservice itself
/// <summary>
/// Summary description for WebServiceAudio
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebS ...
Go to the complete details ...