我正在使用asp.net核心與樣板框架。在執行保存功能時,我收到「發生錯誤!服務器未發送錯誤詳細信息。」生產服務器上的錯誤。在調試時,我發現控件得到.fail()函數,而不是去.done()函數。記錄被保存到數據庫中,我彈出如下消息:「發生了錯誤!服務器未發送錯誤詳細信息。」發生了錯誤!服務器發送錯誤詳細信息
以下是使用jQuery的:
this.save = function (modalManager) {
debugger;
_$Form = _modalManager.getModal().find('form[name=FormName]');
var orderTemplateId = $("#orderTemplateId").val();
var OrderTemplate = _$Form.serializeFormToObject();
_modalManager.setBusy(true);
debugger;
OrderTemplate.id = orderTemplateId;
var AssignedProductsIds = _findAssignedProductList();
debugger;
_orderTemplateService.createOrUpdateOrderTemplate({
OrderTemplate: OrderTemplate,
AssignedProductsIds: AssignedProductsIds,
}).done(function (result) {
debugger;
abp.notify.info(app.localize('SavedSuccessfully'));
_modalManager.close();
}).fail(function (result) {
debugger;
_modalManager.close();
}).always(function (result) {
_modalManager.setBusy(false);
window.location.href = '/app/zone';
});
};
的功能完美的作品本地服務器上沒有任何錯誤。那麼,我沒有得到我錯誤的地方?
謝謝。
檢查瀏覽器中的控制檯。它至少會爲您提供可用於調試問題的HTTP響應代碼 –
您是否查看了日誌文件? –
abp的版本? – andmattia