Hmm.. Are they connecting to same database ?
Nope, two different servers but for some reason now it is working.
Edit : It was working and after a moment it keep gaving this error again.
Program started at 1/28/2016 - 4:28 AM
Account xxx credited successfully - 1/28/2016 - 4:29 AM
Account xxx credited successfully - 1/28/2016 - 4:33 AM
Error in process 1/28/2016 - 4:45 AM - Description: System.InvalidCastException: Specified cast is not valid.
at OnlineCredits.OnlineCredits.tmrChec
Error in process 1/28/2016 - 4:46 AM - Description: System.InvalidCastException: Specified cast is not valid.
at OnlineCredits.OnlineCredits.tmrChec
Edit2: I edited something in the source code and this is the full error message that I got :
(it happens also with the one that is already compiled)
Error in process 1/29/2016 - 8:32 AM - Description: System.InvalidCastException: Specified cast is not valid.
at OnlineCredits.OnlineCredits.tmrCheck_Tick(Object sender, EventArgs e)
Edit3: Found the problem, it happens if DisconnectTime is NULL for new players in mssql
this should fix it
sql = "SELECT * FROM [MEMB_STAT] Where ConnectStat='1' AND DisConnectTM IS NOT NULL";
it would ignore the new players until their first disconnect i think