Unable to cast object of type ‘System.DBNull’ to type ‘System.DateTime’
Hi im trying to make a notification system. Basically when i add a new row, a notification will be shown on my notificationspage realtime (i use signalR with razor pages asp.net). But for some reason when i get on that page, i get these errors: Unable to cast object of type ‘System.DBNull’ to type ‘System.DateTime’.
at myWebApp.Controllers.SpeedListener.GetAlarmList() in myWebAppControllersSpeedListener.cs:line 83
at myWebApp.Controllers.SpeedListener.ListenForAlarmNotifications() in myWebAppControllersSpeedListener.cs:line 43