Hello Kannan.
I finally found the problem.
The project had a Web reference to a Web service which connected to my SQL
server.
I was declaring a web reference on the top of my service.vb (private
sqlconnection as new <Web reference> and because of this, the web service was
trying to connect to the database even though SQL server MSSQLSERVER had not
started yet.
Solution was to remove the code from the top of the service.vb file, added a
new module to the project and when the timer kicked in, call a method in the
module which in turn would connected to the database.
Thanks again for your reply.
adasilva
--
adasilva
"Kannan.V [MCSD.net]" wrote:
Hi,
Seems like your service is trying to connect to another service or
application which has not started, are there any dependencies..
--
Kannan.V
Home : http://www.kannanv.com
Blog : http://kannanv.blogspot.com
Web : http://www.DotnetLounge.net
"Any one who has never made a mistake has never tried anything new" - Einstein
"adasilva" wrote:
I have create a Windows service that uses a timer to access a Web Service.
The service is set to start Automatically and its using the local system
account. The service also logs events to the event viewer and the Event
viewer is set to overwrite events as needed. The problem is that when I boot
the PC the service does not start and I got two error messages in the System
log: (Event 7000. The <MyService> service failed to start due to the
following error:
The service did not respond to the start or control request in a timely
fashion. and Event 7009 Timeout (30000 milliseconds) waiting for the
SuretxtDequeuer service to connect.). if I start the service manually, this
problem does not occur.
Can anyone help!
--
adasilva