473,385 Members | 1,356 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,385 software developers and data experts.

The service started and then stopped...

I have created and installed a Windows service which hosts a remote object
for chat clients. The installation went fine, but when I try to start the
service in the Services tool it says: "The service started and then stopped.
Some services stop automatically if they have no work to do..."

I have the dll's required for the service in the same folder as the service,
along with the config files for the service.exe and chat client.exe.

Can anyone suggest anything else I may need to do before I can start the
service?
Jul 25 '06 #1
2 17093
it happened to me many times... it has this behavior most likely because
you have an exception at startup... try to debug your things either by
using a log or by trying to reproduce your behavior in a windows app
(instead of a service)...

I hope it helps

ThunderMusic

"cashdeskmac" <ca*********@discussions.microsoft.comwrote in message
news:DF**********************************@microsof t.com...
>I have created and installed a Windows service which hosts a remote object
for chat clients. The installation went fine, but when I try to start the
service in the Services tool it says: "The service started and then
stopped.
Some services stop automatically if they have no work to do..."

I have the dll's required for the service in the same folder as the
service,
along with the config files for the service.exe and chat client.exe.

Can anyone suggest anything else I may need to do before I can start the
service?

Jul 25 '06 #2
I removed the settings in the config file and put them in the onstart method
instead. This solved the problem, suggesting an error in my config
declaration.

"ThunderMusic" wrote:
it happened to me many times... it has this behavior most likely because
you have an exception at startup... try to debug your things either by
using a log or by trying to reproduce your behavior in a windows app
(instead of a service)...

I hope it helps

ThunderMusic

"cashdeskmac" <ca*********@discussions.microsoft.comwrote in message
news:DF**********************************@microsof t.com...
I have created and installed a Windows service which hosts a remote object
for chat clients. The installation went fine, but when I try to start the
service in the Services tool it says: "The service started and then
stopped.
Some services stop automatically if they have no work to do..."

I have the dll's required for the service in the same folder as the
service,
along with the config files for the service.exe and chat client.exe.

Can anyone suggest anything else I may need to do before I can start the
service?


Jul 25 '06 #3

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

Similar topics

12
by: Beer | last post by:
Hello Everyone, We have been getting the EventID 7031 errors ever since we installed SP 3. We have been searching for any possible solution, but not much luck. We are running Windows 2000...
7
by: Ross Presser | last post by:
OK, I've been researching this problem and can't find a definitive answer yet. The situation is one that seems to have come up a few times to different folks. I am writing an application that...
23
by: Adam Clauss | last post by:
I have a C# Windows Service running as the NetworkService account because it needs to access a network share. As part of the service's initialization, I want the service to terminate, if an...
0
by: felecha | last post by:
Is there a way to write a Service so that it will fail? I'm working on a Service written in VB.Net, that supports an application we are building, and I want to make sure that it can restart...
6
by: Leonardo Curros | last post by:
Hello, I would like to know what's the best way to restart one service. I would like to do it from the service itself. Is this possible? I try it with ServiceController.stop()...
3
by: Kevin L | last post by:
How do I check to see if a particular service is running?
1
by: Joseph Bittman MCAD | last post by:
June 16, 2005 I'm creating a Windows Service that will backup some statistics files for my web application. I am having a problem when I try to start my service, where it says something about...
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...
2
by: sdstraub | last post by:
I have created 5 services in my project, in the 1st service I set servicestorun = array of all 5 services, I have a project installer with 5 service installers, one for each service. I have code...
2
by: gray d newbie | last post by:
Greetings All, This is my first time creating a Window Service and I am having this error message when I try to start my window service (currently known as Service1). Below is my code for Window...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.