Provo ad aggiungere e commentare il file di log:
- Ore 15:46.13: ho avviato il servizio (avevo appena cancellato il log per pulizia).
- Ore 15:46:30: ho stoppato e riavviato manualmente il servizio
- Ore 15:46:56: ho riavviato il PC. Il servizio è ripartito alle 15:47:39: le eccezioni sono dovute alla mancanza della rete (non conosco il servizio di cui mettere la dipendenza), gestito il problema con un loop di retry
- Ore 15:48:43: ho arrestato il PC e riacceso: alle 15:50:26 il servizio è ripartito, senza connettersi al DB
Grazie
[14/06/2020 15:46:13.171]: *** Avviato programma: OutlookService.exe ***
[14/06/2020 15:46:13.185]: Coonection String: server=192.168.0.25;user id=outlookUser;password=ServiceOutlook!;Persist Security Info=True;database=OutlookService;Convert Zero Datetime=True
[14/06/2020 15:46:13.339]: Connection state: Open
[14/06/2020 15:46:13.339]: Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'PATH_DOCUMENTS'
[14/06/2020 15:46:13.339]: SQL Select: "Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'PATH_DOCUMENTS'"
[14/06/2020 15:46:13.341]: Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'PATH_DROPBOX'
[14/06/2020 15:46:13.341]: SQL Select: "Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'PATH_DROPBOX'"
[14/06/2020 15:46:13.341]: Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'TEMP_DIR'
[14/06/2020 15:46:13.341]: SQL Select: "Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'TEMP_DIR'"
[14/06/2020 15:46:13.341]: Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'DEBUG'
[14/06/2020 15:46:13.341]: SQL Select: "Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'DEBUG'"
[14/06/2020 15:46:13.341]: Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'INTERVAL'
[14/06/2020 15:46:13.341]: SQL Select: "Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'INTERVAL'"
[14/06/2020 15:46:23.345]: Try to analize files in: C:\UsrPrograms\OutlookService\Temp\
[14/06/2020 15:46:30.162]: *** Terminato programma : OutlookService.exe ***
[14/06/2020 15:46:33.808]: *** Avviato programma: OutlookService.exe ***
[14/06/2020 15:46:33.820]: Coonection String: server=192.168.0.25;user id=outlookUser;password=ServiceOutlook!;Persist Security Info=True;database=OutlookService;Convert Zero Datetime=True
[14/06/2020 15:46:34.089]: Connection state: Open
[14/06/2020 15:46:34.089]: Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'PATH_DOCUMENTS'
[14/06/2020 15:46:34.089]: SQL Select: "Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'PATH_DOCUMENTS'"
[14/06/2020 15:46:34.091]: Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'PATH_DROPBOX'
[14/06/2020 15:46:34.091]: SQL Select: "Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'PATH_DROPBOX'"
[14/06/2020 15:46:34.091]: Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'TEMP_DIR'
[14/06/2020 15:46:34.091]: SQL Select: "Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'TEMP_DIR'"
[14/06/2020 15:46:34.091]: Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'DEBUG'
[14/06/2020 15:46:34.091]: SQL Select: "Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'DEBUG'"
[14/06/2020 15:46:34.093]: Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'INTERVAL'
[14/06/2020 15:46:34.093]: SQL Select: "Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'INTERVAL'"
[14/06/2020 15:46:44.095]: Try to analize files in: C:\UsrPrograms\OutlookService\Temp\
[14/06/2020 15:46:54.099]: Try to analize files in: C:\UsrPrograms\OutlookService\Temp\
[14/06/2020 15:46:56.376]: Windows Shutdown - Stop Service
[14/06/2020 15:46:56.376]: *** Terminato programma : OutlookService.exe ***
[14/06/2020 15:47:39.533]: *** Avviato programma: OutlookService.exe ***
[14/06/2020 15:47:39.551]: Coonection String: server=192.168.0.25;user id=outlookUser;password=ServiceOutlook!;Persist Security Info=True;database=OutlookService;Convert Zero Datetime=True
[14/06/2020 15:47:42.714]: *** Execption ***
[14/06/2020 15:47:42.714]: Unable to connect to any of the specified MySQL hosts.
[14/06/2020 15:47:42.714]: in MySql.Data.MySqlClient.NativeDriver.Open()
in MySql.Data.MySqlClient.Driver.Open()
in MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
in MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
in MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
in MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
in MySql.Data.MySqlClient.MySqlPool.GetConnection()
in MySql.Data.MySqlClient.MySqlConnection.Open()
in OutlookService.MySQLDB.Connect()
[14/06/2020 15:47:42.714]: *** END Execption ***
[14/06/2020 15:47:45.735]: *** Execption ***
[14/06/2020 15:47:45.735]: Unable to connect to any of the specified MySQL hosts.
[14/06/2020 15:47:45.735]: in MySql.Data.MySqlClient.NativeDriver.Open()
in MySql.Data.MySqlClient.Driver.Open()
in MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
in MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
in MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
in MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
in MySql.Data.MySqlClient.MySqlPool.GetConnection()
in MySql.Data.MySqlClient.MySqlConnection.Open()
in OutlookService.MySQLDB.Connect()
[14/06/2020 15:47:45.735]: *** END Execption ***
[14/06/2020 15:47:48.737]: *** Execption ***
[14/06/2020 15:47:48.737]: Unable to connect to any of the specified MySQL hosts.
[14/06/2020 15:47:48.737]: in MySql.Data.MySqlClient.NativeDriver.Open()
in MySql.Data.MySqlClient.Driver.Open()
in MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
in MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
in MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
in MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
in MySql.Data.MySqlClient.MySqlPool.GetConnection()
in MySql.Data.MySqlClient.MySqlConnection.Open()
in OutlookService.MySQLDB.Connect()
[14/06/2020 15:47:48.737]: *** END Execption ***
[14/06/2020 15:47:51.739]: *** Execption ***
[14/06/2020 15:47:51.739]: Unable to connect to any of the specified MySQL hosts.
[14/06/2020 15:47:51.739]: in MySql.Data.MySqlClient.NativeDriver.Open()
in MySql.Data.MySqlClient.Driver.Open()
in MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
in MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
in MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
in MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
in MySql.Data.MySqlClient.MySqlPool.GetConnection()
in MySql.Data.MySqlClient.MySqlConnection.Open()
in OutlookService.MySQLDB.Connect()
[14/06/2020 15:47:51.739]: *** END Execption ***
[14/06/2020 15:47:53.842]: Connection state: Open
[14/06/2020 15:47:53.842]: Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'PATH_DOCUMENTS'
[14/06/2020 15:47:53.844]: SQL Select: "Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'PATH_DOCUMENTS'"
[14/06/2020 15:47:53.850]: Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'PATH_DROPBOX'
[14/06/2020 15:47:53.850]: SQL Select: "Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'PATH_DROPBOX'"
[14/06/2020 15:47:53.856]: Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'TEMP_DIR'
[14/06/2020 15:47:53.856]: SQL Select: "Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'TEMP_DIR'"
[14/06/2020 15:47:53.860]: Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'DEBUG'
[14/06/2020 15:47:53.860]: SQL Select: "Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'DEBUG'"
[14/06/2020 15:47:53.866]: Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'INTERVAL'
[14/06/2020 15:47:53.866]: SQL Select: "Select Gruppo, Parametro, Valore From Parametri Where Gruppo = 'GENERALE' And Parametro = 'INTERVAL'"
[14/06/2020 15:48:03.884]: Try to analize files in: C:\UsrPrograms\OutlookService\Temp\
[14/06/2020 15:48:13.885]: Try to analize files in: C:\UsrPrograms\OutlookService\Temp\
[14/06/2020 15:48:23.887]: Try to analize files in: C:\UsrPrograms\OutlookService\Temp\
[14/06/2020 15:48:33.888]: Try to analize files in: C:\UsrPrograms\OutlookService\Temp\
[14/06/2020 15:48:43.891]: Try to analize files in: C:\UsrPrograms\OutlookService\Temp\
[14/06/2020 15:50:26.428]: Try to analize files in: C:\UsrPrograms\OutlookService\Temp\
[14/06/2020 15:50:36.430]: Try to analize files in: C:\UsrPrograms\OutlookService\Temp\
[14/06/2020 15:50:46.433]: Try to analize files in: C:\UsrPrograms\OutlookService\Temp\
[14/06/2020 15:50:56.435]: Try to analize files in: C:\UsrPrograms\OutlookService\Temp\
[14/06/2020 15:51:06.438]: Try to analize files in: C:\UsrPrograms\OutlookService\Temp\
[14/06/2020 15:51:16.443]: Try to analize files in: C:\UsrPrograms\OutlookService\Temp\
[14/06/2020 15:51:26.444]: Try to analize files in: C:\UsrPrograms\OutlookService\Temp\
[14/06/2020 15:51:36.446]: Try to analize files in: C:\UsrPrograms\OutlookService\Temp\
[14/06/2020 15:51:46.448]: Try to analize files in: C:\UsrPrograms\OutlookService\Temp\
[14/06/2020 15:51:56.449]: Try to analize files in: C:\UsrPrograms\OutlookService\Temp\