Я вызываю веб-метод, используя jquery ajax. вызов веб-метода выглядит следующим образом
function test() {
$.ajax({
type: "POST",
url: "DashboardAdminService.asmx/GetSecureKey",
dataType: "xml",
success: function(response) {
$("#KeyDetailsTable").find("tr:gt(0)").remove();
$(response).find("SecureKey").each(function() {
if ($(this).find('Status').text() == "Active")
$('#KeyDetailsTable > tbody').append('<tr><td>' + $(this).find('ID').text() + '</td><td>' + $(this).find('KeyName').text() + '</td><td>' + $(this).find('Description').text() + '</td><td id=' + $(this).find('ID').text() + '><a href=' + '#' + ' onclick=\'createPopup(' + $(this).find('ID').text() + ');\'>View</a><br /><a href=' + '#' + ' onclick=\'deactivateKey(' + $(this).find('ID').text() + ');\'>Deactivate</a></td></tr>')
else
$('#KeyDetailsTable > tbody').append('<tr><td>' + $(this).find('ID').text() + '</td><td>' + $(this).find('KeyName').text() + '</td><td>' + $(this).find('Description').text() + '</td><td id=' + $(this).find('ID').text() + '><a href=' + '#' + ' onclick=\'createPopup(' + $(this).find('ID').text() + ');\'>View</a><br /><a href=' + '#' + ' onclick=\'activateKey(' + $(this).find('ID').text() + ');\'>Activate</a></td></tr>')
});
},
failure: function() { alert("failed"); }
});
}
Это нормально работает на локальном компьютере, но при размещении на сервере веб-метод не работает и возникает внутренняя ошибка сервера.