I recently moved an older asp.net application to a new server. Among other things, it displays the contents of a SQL table. The application works with no error when I run it in Visual Studio with IIS Express, but when I publish it to IIS 10, I get this error:
DataTables warning: table id=EmployeeTable - Ajax error. For more information about this error, please see
http://datatables.net/tn/7
I assume it's not making the SQL table connection in IIS 10, but why would IIS Express and IIS handle this differently:
public ActionResult GetData() //happens on load of page
{
using (DBModel db = new DBModel())
{
List<Requestor> empList = db.People.ToList<Requestor>();
return Json(new { data = empList }, JsonRequestBehavior.AllowGet);
}
}
Hello RhodoDen,
Server-side processing in DataTables is enabled through use of the serverSide option.
Try to set it true and DataTables will operate in server-side processing mode
None
0 Points
5 Posts
DataTables warning: table id=datatable - Ajax error
Apr 07, 2021 12:09 AM|RhodoDen|LINK
I recently moved an older asp.net application to a new server. Among other things, it displays the contents of a SQL table. The application works with no error when I run it in Visual Studio with IIS Express, but when I publish it to IIS 10, I get this error:
DataTables warning: table id=EmployeeTable - Ajax error. For more information about this error, please see http://datatables.net/tn/7
I assume it's not making the SQL table connection in IIS 10, but why would IIS Express and IIS handle this differently:
Participant
860 Points
498 Posts
Re: DataTables warning: table id=datatable - Ajax error
Apr 12, 2021 12:44 PM|AddWeb Solution|LINK
Hello RhodoDen,
Server-side processing in DataTables is enabled through use of the serverSide option.
Try to set it true and DataTables will operate in server-side processing mode