Следующий вызов JSON всегда попадает в обработчик ошибок AJAX, и я не могу понять, почему:
$.ajax({
type: "GET",
url: '<%= Url.Action("MyTest", "Detail") %>',
dataType: "json",
error: function (xhr, status, error) {
alert(xhr + " | " + status + " | " + error);
},
success: function (json) {
alert(json);
}
});
Все, что я получаю, это Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://localhost:4497/Detail/MyTest?_=1320681138394
Когда я устанавливаю точку остановав контроллере я вижу, что это достигается, поэтому я не уверен, куда падает запрос.Вот действие в DetailController:
Function MyTest() As JsonResult
Return Json("Hello")
End Function
Есть идеи?