Datatables Net Core SearchPanes Not Working
Datatables Net Core SearchPanes Not Working
I always get this error: Object Reference note set to an instance of an object.
{
"draw": null,
"data": [],
"recordsTotal": null,
"recordsFiltered": null,
"error": "Object reference not set to an instance of an object.",
"fieldErrors": [],
"id": null,
"meta": {},
"options": {},
"searchBuilder": {
"options": {}
},
"searchPanes": {
"options": {}
},
"files": {},
"upload": {
"id": null
},
"debug": [
{
"query": "SELECT COUNT( Id ) as 'cnt' FROM [Customers] WHERE (1=1)",
"bindings": []
},
{
"query": "SELECT COUNT( Id ) as 'cnt' FROM [Customers] ",
"bindings": []
},
{
"query": "SELECT [Id] as 'Id', [FullName] as 'FullName', [IsActive] as 'IsActive', [TableTypeId] as 'TableTypeId', [ContractId] as 'ContractId', [Phone] as 'Phone', [Code] as 'Code' FROM [Customers] WHERE (1=1) ORDER BY [Id] asc OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY",
"bindings": []
}
],
"cancelled": []
}
Replies
Could you set the
TryCatch
parameter tofalse
and then show me the trace for where it breaks please?Also, what version of the dll are you using?
Allan
After making TryCatch false it gave such error.
Version 2.0.2
Nuget Package : https://www.nuget.org/packages/DataTables.AspNet.Core