我在本地没有任何问题,但是传到服务器就responded with a status of 500 (internal

首页可以正常打开,但是登录的时候就出现这个问题,一片空白,我按F12查看就提示responded with a status of 500 (internal server error)这个怎么解决?
当前问题共有如下(1)个解决方案
  • wflxln131420
    wflxln131420
    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.Index.chshtml code is belowfunction onLoad(e) {var grid = $(this).data("tGrid");//bind to the context menu of the Grid's headerevent.preventDefault();$(this).find(".t-grid-header").bind('contextmenu', function (e) {//wait for the menu to be generatedsetTimeout(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 hiddenvar checked = $(this).is(":checked");// get the index and the corresponding column from the Grid's column collectionvar 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);}});});});});}Controller methodpublic JsonResult SaveColumnInfo(string columnIndex, string value){CookieHelper helper=new CookieHelper();helper.UpdateCookie(int.Parse(columnIndex), value.ToString());return Json("Success");}Error in chromePOST http://localhost:3577/GlobalSearch/SaveColumnInfo 500 (Internal Server Error) jQuery.ajaxTransport.send jQuery.extend.ajax (anonymous function) jQuery.event.handle jQuery.event.add.elemData.handle.eventHandle
上一篇:腾讯云和阿里云的价格性能都差不多,选哪家?
下一篇:...域名转入阿里云的服务器,应该如何操作?