![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have a service which is only a server for some objects the user can instanciate and call. Right now, the service starts and then stops automaticaly. The only line of code I added is in the OnStart event and is "RemotingConfiguration.Configure(configfile)". So I guess the service is stopping because it has nothing better to do? Is there a setting I can set to prevent it from stopping? will I have to start a loop that will run until the OnStop event runs in order to keep the service alive? Thanks ThunderMusic |
#3
| |||
| |||
|
|
Did you try changing the service startup type to "Manual". ? Thanks. Ramu "ThunderMusic" <NOdanlatSPAM@hotmaildotcom> wrote in message news:uCW8fTvFGHA.740 (AT) TK2MSFTNGP12 (DOT) phx.gbl... Hi, I have a service which is only a server for some objects the user can instanciate and call. Right now, the service starts and then stops automaticaly. The only line of code I added is in the OnStart event and is "RemotingConfiguration.Configure(configfile)". So I guess the service is stopping because it has nothing better to do? Is there a setting I can set to prevent it from stopping? will I have to start a loop that will run until the OnStop event runs in order to keep the service alive? Thanks ThunderMusic |
#4
| |||
| |||
|
|
no, I want it to be automatic... I just want it to stay alive after it starts... |
#5
| |||
| |||
|
|
"RemotingConfiguration.Configure(configfile)". So I guess the service is stopping because it has nothing better to do? |
|
Hi, I have a service which is only a server for some objects the user can instanciate and call. Right now, the service starts and then stops automaticaly. The only line of code I added is in the OnStart event and is Is there a setting I can set to prevent it from stopping? will I have to start a loop that will run until the OnStop event runs in order to keep the service alive? Thanks ThunderMusic |
#6
| |||
| |||
|
|
Hi, I have a service which is only a server for some objects the user can instanciate and call. Right now, the service starts and then stops automaticaly. The only line of code I added is in the OnStart event and is "RemotingConfiguration.Configure(configfile)". So I guess the service is stopping because it has nothing better to do? Is there a setting I can set to prevent it from stopping? will I have to start a loop that will run until the OnStop event runs in order to keep the service alive? Thanks ThunderMusic |
#7
| |||
| |||
|
|
Hi, I have a service which is only a server for some objects the user can instanciate and call. Right now, the service starts and then stops automaticaly. The only line of code I added is in the OnStart event and is "RemotingConfiguration.Configure(configfile)". So I guess the service is stopping because it has nothing better to do? Is there a setting I can set to prevent it from stopping? will I have to start a loop that will run until the OnStop event runs in order to keep the service alive? Thanks ThunderMusic spawn a thread or a backgroundworker in the onstart method that does the listening ( |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |