HighTechTalks DotNet Forums  

WINDOWS SERVICE PARAMETERS

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss WINDOWS SERVICE PARAMETERS in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Shazad
 
Posts: n/a

Default WINDOWS SERVICE PARAMETERS - 12-18-2003 , 09:32 AM






I am creating a windows service that requires parameters to start. The
service Startup Type is set to automatic therefore it starts when the
computer is started or rebooted. However the service fails because the
parameters do not persist.

If the service is started manually and the parameters entered it starts and
runs correctly. If the computer is rebooted the service attempts to start
but fails because the parameters are not used to start the service. Are the
start parameters just lost.

How can I overcome this?.



Reply With Quote
  #2  
Old   
mohan_kl
 
Posts: n/a

Default re: WINDOWS SERVICE PARAMETERS - 12-18-2003 , 04:48 PM






Use the config file to have the parameters.
If you need to know about using of config on .exe let me know, will try and give an example.
cheers

---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website: http://www.dotnetjunkies.com/newsgroups/

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.