-2
我有一個AJX get調用,我在MVC3應用程序中使用。以下是電話。JQuery AJAX在IIS上調用失敗,但在開發服務器上工作
$.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是序列化的形式。在我的電腦上運行我的開發服務器上,這個調用工作正常,我得到了結果。當我將它部署到Windows Server 2008 R2時,它會返回一個錯誤。
什麼是錯誤? – Tommy
什麼是錯誤?您的cqvdata中是否有依賴於數據的數據?例如日期時間,小數等? – nemesv
我發現錯誤是414請求URL太長。我需要發送序列化的表單數據,所以我不知道是否有一些設置可以在IIS上調整? –