• Register
0 votes
3.2k views

Problem :

I want to send a call using ajax but in Chrome getting following error

“Failed to load resource: the server responded with a status of 500 (internal server error)”

But for firefox getting no error. I also tried to record the ajax call in firebug but there is no call request in firebug May I know the solution for this issue?.

Index.chshtml code is as follows

function onLoad(e) {

    var grid = $(this).data("tGrid");

    //bind to the context menu of the Grid's header

    event.preventDefault();

    $(this).find(".t-grid-header").bind('contextmenu', function (e) {

        //wait for the menu to be generated

        setTimeout(function () {

            // bind to the checkboxes change event. The context menu has ID in the format "GridName" + "_contextmenu"

            $('#globalsearchgrid_contextMenu :checkbox').change(function () {

                debugger;

                var $checkbox = $(this);

                // the checked state will determine if the column has been shown or hidden

                var checked = $(this).is(":checked");

                // get the index and the corresponding column from the Grid's column collection

                var columnIndex = $(this).data("field");

                var request = "{'columnIndex':'" + columnIndex + "'value':'" + checked + "'}";

                $.ajax({

                    type: "POST",

                    url: "../../GlobalSearch/SaveColumnInfo",

                    data: request,

                    contentType: "application/json; charset=utf-8",

                    dataType: "json",

                    success: function (msg) { },

                    error: function (xhr, status, error) {

                        alert(error.responseTextss);

                    }

                });

            });

        });

    });

}

6 5 3
6,930 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

The 500 error code normally indicates that there is an error on the server, and there is nothing wrong with your code.

·         Please speak with the server development team to get more information on it.

·         Try to verify your argument values into the call. Also search for anything that you think can cause a problem to the server process. Ideally the process should not terminate and should return you a better response code.

·         May be intermittent like if the server database is down. You can try after some time.

9 7 4
38,600 points

Related questions

0 votes
1 answer 14 views
14 views
Problem : why this is still happining : Failed to load resource: the server responded with a status of 500 (internal server error).
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 6 views
6 views
Problem: I'm trying to send a call using Ajax but in Chrome it is a rising error: The server responded with a status of 500 Thanks
asked Mar 20 ummesalma 29.2k points
1 vote
1 answer 5 views
5 views
Problem: I am facing this error please help : 500 internal server error. iis 7
asked Mar 20 PkGuy 23.5k points
0 votes
1 answer 1 view
1 view
Problem: I'll make a submission for a response to my question. Please, I have searched the internet but have not found any useful material, and I am now having trouble continuing my studies.
asked Mar 30 tuhin1 48.9k points
0 votes
1 answer 8 views
8 views
Problem: What are my options for resolving this problem “Failed to load resource: the server responded with a status of 405 (method not allowed)”?
asked Mar 30 tuhin1 48.9k points
0 votes
1 answer 27 views
27 views
Problem: When I try to upgrade my database from Mvc-AngularJs to wcf-Rest, I get an error like Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9706/EmployeeService.svc/UpdatexyzData/Update/but with the same ur when I try to get ... : { 'Accept': 'application/json', 'Content-Type': 'application/x-www-form-urlencoded ;charset=utf-8' } }) return ss; }
asked Jan 24 sasha 16.2k points
0 votes
0 answers 39 views
0 votes
0 answers 4 views
4 views
Problem: Can some one fix this? error code 0 failed to load resource
asked Mar 20 PkGuy 23.5k points
0 votes
1 answer 19 views
19 views
Problem: I get a whole bunch of following error for the front-end resources:Failed to load resource: the server responded with a status of 401.The website launches just fine when using vs 2012. Does anyone know what could be going wrong?
asked Apr 14 Humaira ahmed 50.7k points
0 votes
1 answer 2.2K views
2.2K views
Problem : I am facing the below error: Failed to load resource: the server responded with a status of 401 (Unauthorized) http://localhost/App/AngularJS/angular.min.js My project works fine on the localhost. But when I try to run it on the IIS (7.5) I often face ... read/write/modify access for the "IUSR" & "IIS_ISURS" users of my whole project. But still I am facing the same exception on my IIS.
asked Dec 24, 2019 alecxe 7.5k points