• Register
0 votes

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


    $(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 () {


                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 + "'}";


                    type: "POST",

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

                    data: request,

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

                    dataType: "json",

                    success: function (msg) { },

                    error: function (xhr, status, error) {








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
0 answers 23 views
0 votes
1 answer 1.3K 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
0 votes
1 answer 378 views
Problem : I am unable to solve my link problem. Can anybody help on to this to link the CSS and JS File? I am facing below error : Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/RetailSmart/jsp/ ... .js Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/RetailSmart/jsp/Jquery/prettify.js
asked Jan 10, 2020 alecxe 7.5k points
0 votes
1 answer 20 views
I want to know a function built into Java that capitalizes the first character of each word in a String. It doesn’t affect the others?
asked Sep 28, 2020 Daniel Anderson 4k points
0 votes
1 answer 68 views
Problem : I have got the legacy code issue that requires that I support the random urls as if they were requests for a home page. Some of the URLs have the characters in them that generate the below error "A potentially dangerous Request.Path value was detected from ... />     </system.web> <configuration> I have also Added a ValidateInput attribute to my action that should be catching the urls.
asked Jan 25, 2020 jwilliam 3.9k points
0 votes
1 answer 10 views
I need to know how to remove the first cgaracter of a string in Java.
asked Sep 25, 2020 Daniel Anderson 4k points
0 votes
1 answer 10 views
0 votes
1 answer 14 views
Problem: I am naive to Asp.Net.I am having a weird looking problem where I am trying to open up my ASP.NET MVC application but I am receiving the below ASP.NET error page which says: Server Error in '/' Application. The resource cannot be found. Description: ... unknown reason to me it seems like it is actually searching for the .aspx file. Please guide me if you think I am missing something.
asked Aug 19, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 111 views
Problem : I have recently installed a website on my local machine using IIS 7 successfully. But when I tried to deploy it on the live server, I got a following error: "The page cannot be displayed because an internal server error has occurred" Nothing else. Using a same IIS 7 on live and also set to have the Detailed errors in Error Pages module, but still getting a same. What can be the reason?
asked Jan 28, 2020 jwilliam 3.9k points