Questions and discussions on ASP.NET Zero before purchase.
By Vish
#18006 Hi,
I am using asp.net core with boilerplate framework. While implementing save functionality, I am getting "An error has occurred! Error detail not sent by server." error on production server. On debugging, I found that the control gets to .fail() function instead of going to .done() function. The record gets saved into the database and I am getting following message on pop-up : "An error has occurred! Error detail not sent by server."

Following is the jquery used:

Code: Select allthis.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;
                abp.notify.info(app.localize('SavedSuccessfully'));
                _modalManager.close();
            }).always(function (result) {
                _modalManager.setBusy(false);
                window.location.href = '/app/zone';
            });           
        };



The functionality works perfectly on local server without any errors. So, I am not getting what is the actual issue?
Thanks.
By ismcagdas
#18061 Hi @ Vish,

Probably the ajax request is made wiht PUT keyword and I think your production server's IIS blocks PUT Requests by default.
We had some customers facing this problem before.

I suggest you to disable/uninstall WebDav module from IIS.
You can search in the forum or internet to learn how to do that.

By the way, you can write all of your questions to premium forum section.
In that way, you can get faster responses.

Thanks.