473,564 Members | 2,758 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5571
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
2882
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
463
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 when I run the line "shellWindows = new SHDocVw.ShellWindowsClass();": COM object with CLSID {9BA05972-F6A8-11CF-A442-00A0C90A8F39} is either not...
3
2184
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 issue is simply getting timers to work. I have a DatabaseManager.DataManagerFacade which contains a timer. Every 6 seconds it updates stock data...
3
14872
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 swLog As StreamWriter = File.CreateText("C:\myLog.txt") swLog.WriteLine("My Windows Service has just started.") swLog.Close() : swLog.Flush() End Sub
4
2096
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 Microsoft.DirectX.AudioVideoPlayback.Audio class for that purpose. My problem is whenever I send a command to the program windows gives an error related to the directX, and shuts...
2
8708
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 service is installed, it just time out at system startup and don't start. But i'm able to start it manually once i'm logged in. I read in a page...
4
4167
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 check to see if the status is in stopped or running mode. But that doesn't tell me if it is actually running. I need to know this so that if it...
4
1974
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 interaction. When I originally installed the service, I had to attempt the start twice as well from the Service Manager. So, for some odd reason,...
1
6402
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 reason it never gets saved (I open the properties right after, and the box is empty). How does one persist a value in the Start Parameters box for...
0
7665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7950
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.