473,396 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Windows Service startup problem

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
Dec 1 '05 #1
3 5556
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

Dec 1 '05 #2
Hello, Kannan. Thanks for your reply.
The service has two dependencies (MSSQLSERVER AND SQLSERVERAGENT)
Also one thing that I notice just now was that the service has a reference
to a Webservice which opens a connection to the database. The database login
settings is located in the registry and the WebService reads from it. Now
this web service its been used by other applications and these applications
does not expirience these problems.
The only thing I can think is permissions.
regards
Adriano
--
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

Dec 1 '05 #3
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

Dec 1 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stefan Hinz | last post by:
Degan, jumping in to try and solve some problems that look pretty obvious to me ... > #options for default service (mysqld2) > (mysqld2) It should be , not (mysqld2).
1
by: SunshineGirl | last post by:
I'm trying to connect an event handler to the BeforeNavigate2 event of Internet Explorer. This works in a Windows app, but I can't get it to work in a Windows service. I get the following exception...
3
by: Nathan Kovac | last post by:
I have a feeling I am missing something simple, but I just can't find it. Perhaps someone can give me a lead on where to look. I will describe the issue then post my code to the web service. My...
3
by: Amjad | last post by:
Hi, I just wrote a test Windows Service that creates a text file on startup (please see my code below). The file is never created. Protected Overrides Sub OnStart(ByVal args() As String) Dim...
4
by: duzinga | last post by:
I am trying to have a server program that runs at startup and accepts several commands from the clients. One of the commands is to play an audio file. I am using...
2
by: Cubaman | last post by:
Hello everybody. I'm currently developing a windows service. In OnStart a launch two threads that carry on some work while the service is running. My problem comes from the fact that once the...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
4
by: Ashley Bryant | last post by:
I've created a Windows Service in vb.net that is set up to run automatically, but it never starts during system startup. I can start it manually, but I need the service to start without any user...
1
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... After I installed my .net windows service, I tried to control some of the behavior with the Start Parameters: in the services control parameter. I can put a value in the box but for some...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.