473,487 Members | 2,451 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Windows Service using VB.Net automatic startup problem !

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
6 2872
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
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
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
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
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
I will have to try that workaround myself. Glad to know it helped.

May 30 '06 #7

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

Similar topics

0
2876
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).
0
291
by: big A | last post by:
I am experiencing an issue that i have seen posted with various descriptions but lacks any answers. I have .Net Framework 1.1 services that run without issue on windows 2000 professional; however...
3
1666
by: Johnny Fugazzi | last post by:
OK, I created my handy little windows service and created an MSI installer using the Deployment tool in VS.net with Custom Actions according to the msdn help. Worked great, with one little...
3
14848
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...
3
7468
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work...
2
4656
by: letibal | last post by:
Hello, I have written a windows service and created an installer for it. The service runs under the system accounts. When started, it launches a GUI. By default, the InteractiveProcess property...
1
3655
by: Sergey Krutous | last post by:
Can you please help me to resolve the following issue: I developed a windows service. At start up (I have overriden OnStart method) it connects to a web service and if the connection fails the...
4
4153
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...
2
9704
by: rqcoder | last post by:
Is there a way to change a Service's startup type somewhere in the .net framework? I've been messing around with the System.ServiceProcess namespace which allows me to start, stop and pause...
0
7106
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,...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7137
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
7181
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
4565
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...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1381
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 ...
1
600
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
267
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...

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.