title: Failed to load resource: the server responded with a status of 500 (Internal Server Error) in Bind function
body: <p>I'm trying to send a call using Ajax but in Chrome it is rising error but in Firefox there is no error. But still it can't calling the method. I tried to record my call in Firebug but there is no call request in Firebug. So that's the reason there is no error in Firefox.</p>
  <p><b>Index.chshtml</b> code is below</p>
  <pre><code>function onLoad(e) {
  
      var grid = $(this).data(&quot;tGrid&quot;);
      //bind to the context menu of the Grid's header
      event.preventDefault();
      $(this).find(&quot;.t-grid-header&quot;).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 &quot;GridName&quot; + &quot;_contextmenu&quot;
              $('#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(&quot;:checked&quot;);
                  // get the index and the corresponding column from the Grid's column collection
                  var columnIndex = $(this).data(&quot;field&quot;);
  
                  var request = &quot;{'columnIndex':'&quot; + columnIndex + &quot;'value':'&quot; + checked + &quot;'}&quot;;
                  $.ajax({
                      type: &quot;POST&quot;,
                      url: &quot;../../GlobalSearch/SaveColumnInfo&quot;,
                      data: request,
                      contentType: &quot;application/json; charset=utf-8&quot;,
                      dataType: &quot;json&quot;,
                      success: function (msg) { },
                      error: function (xhr, status, error) {
                          alert(error.responseTextss);
                      }
  
                  });
              });
          });
      });
  }
  </code></pre>
  <p><b>Controller method</b></p>
  <pre><code> public JsonResult SaveColumnInfo(string columnIndex, string value)
      {
          CookieHelper helper=new CookieHelper();
          helper.UpdateCookie(int.Parse(columnIndex), value.ToString());
  
          return Json(&quot;Success&quot;);
      }
  </code></pre>
  <p><b>Error in Chrome</b></p>
  <blockquote>
  <p>POST http‍://localhost:3577/GlobalSearch/SaveColumnInfo 500 (Internal Server Error)<br />
  jQuery.ajaxTransport.send<br />
  jQuery.extend.ajax<br />
  (anonymous function)<br />
  jQuery.event.handle<br />
  jQuery.event.add.elemData.handle.eventHandle</p>
  </blockquote>