By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,581 Members | 2,023 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,581 IT Pros & Developers. It's quick & easy.

Windows Service using VB.Net automatic startup problem !

P: n/a
Hello,

I have written a service using VB.Net which is basically a asynch socket
listener. I have been able to install it successfully. Using the Service
Control Manager I am able to start & stop the service successfully. Once
started, the service is responding to requests. The service runs under a user
a/c (the user is part of the local administrators group).

I have set the ServiceDependsOn to TCP/IP Protocol Driver, Event Log, Remote
Procedure Call (RPC) and AD Network Support Services (something like that).

after all this when I boot the system the service does NOT start and in the
event log I get a "Service did not respond in a timely fashion" message.

Suggestions ? (if I'm in the wrong place then please tell me which NG should
this go to)
--
Ravi Shankar
May 25 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
I don't know if this will help you or if it applies to you, but I have
the same problem when I have event logging in my service as well.

May 25 '06 #2

P: n/a
Hi Ravi,

Are you starting the service automatically or manually? If it fails on boot
up, can you try to start the service manually?

Kevin Yu
Microsoft Online Community Support

================================================== ==========================
==========================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
================================================== ==========================
==========================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 26 '06 #3

P: n/a
Hi Kevin,

From the Service Control Manager I could start the service manually without
any problems.

However, I did one thing today and it has started working. Following
"Charlie Browns" comment I removed the "Event Log" from the Service Design
sheet. Instead I started using the Me.EventLog for logging events and the
service started up just fine... god knows why but I've decided to leave it at
that :)
--
Ravi Shankar
"Kevin Yu [MSFT]" wrote:
Hi Ravi,

Are you starting the service automatically or manually? If it fails on boot
up, can you try to start the service manually?

Kevin Yu
Microsoft Online Community Support

================================================== ==========================
==========================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
================================================== ==========================
==========================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 26 '06 #4

P: n/a
Hi Charlie Brown,

Your observation got me thinking and from the Service Design Sheet I deleted
the EventLog component. I then changed the code of my service to start using
me.EventLog to write to the error log.

NET RESULT - The service started (without any errors) when I rebooted the
system. Just to make sure I rebooted & rebooted and it still worked :)))
--
Ravi Shankar
"Charlie Brown" wrote:
I don't know if this will help you or if it applies to you, but I have
the same problem when I have event logging in my service as well.

May 26 '06 #5

P: n/a
It was nice to hear that you have had the problem resolved.

Thanks for sharing your experience with all the people here. If you have
any questions, please feel free to post them in the community.

Kevin Yu
Microsoft Online Community Support

================================================== ==========================
==========================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
================================================== ==========================
==========================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 29 '06 #6

P: n/a
I will have to try that workaround myself. Glad to know it helped.

May 30 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.