Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: 7 May 2005 11:41:04 -0700,    group: microsoft.public.dotnet.myservices        back       


start parameters question   
is there a way to set my start parameters in code? i've got a windows
service whose ServiceStartMode is manual and requires start parameters.
i'd like to change the ServiceStartMode to Automatic and just set some
start parameter property so that if the machine were to go down the
service automatically starts back up (i.e., not requiring me to
manually start the service back up). 

thanks,

arthur
date: 7 May 2005 11:41:04 -0700   author:   arthur

Re: start parameters question   
ok, sorry to have wasted your time with this one. all i had to do was
grab the config file for the RemotingConfiguration.Configure method to
use in OnStart.

here's another one though: is there anyway to actually install the
service when i run the .net setup project? right now i have to manually
call installutil.exe.

thanks,

arthur
date: 7 May 2005 17:51:50 -0700   author:   arthur

Re: start parameters question   
after trying about 20 different things suggested in as many different
sites, i realized my service host project also had an installer in it.
i simply added the project to the install custom action and it
installed the service upon running the setup. it would have been nice
if the example i used to create my service
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT15.asp)
mentioned this. on the bright side, this was the solution that required
the least amount of extra effort.
date: 8 May 2005 09:50:34 -0700   author:   arthur

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us