I have an AJX get call that I use in an MVC3 app. Below is the call.
$.ajax({
url: '@Url.Action("GetEmailByAdvanced", "CustomerEmails")',
type: 'GET',
data: cqvdata,
success: function (data) {
//called when successful
var emails = "";
$.each(data, function (index, contact) {
$('#BCCText').tagit('createTag', contact.Email)
});
return false;
},
error: function (e) {
//called when there is an error
alert("Error occurred");
}
});
cqvdata is the serialized form. On my development server running on my computer this call works fine and I get results. When I deploy it to Windows Server 2008 R2 it returns an error.
I could not find any way to deal with the error 414. Looking around on the net it seems like the answer usually was that you should use a post with data that large so it comes across differently. I made that change and now it runs fine.