G
Guest
I have developed a service that monitors the CPU utilization performance
counter and updates a table in a database. During the Service Start up, I
attempt to connect to the database. I would like to report a Start up failure
to the SCM (Service Control Manager) during Service Start up if the
connection to the database fails. Also, if the connection fails, I would like
the service to stop. How would I achieve this? I am coding in VB.Net.
counter and updates a table in a database. During the Service Start up, I
attempt to connect to the database. I would like to report a Start up failure
to the SCM (Service Control Manager) during Service Start up if the
connection to the database fails. Also, if the connection fails, I would like
the service to stop. How would I achieve this? I am coding in VB.Net.