how to install Windows service and class library

  • Thread starter Thread starter shiv
  • Start date Start date
S

shiv

Hi
i have written a windows service which referenes a User
Class Library(dll). Windows Service and the class library
both use their own config files. Now i need to install
this on the production server.
What i want to know is that do i have to just copy the
following files into a directory?
1)windowsservice.exe
2)UserClass.dll
3)WindowsService.exe.config
4)UserClass.dll.config

and then using the installutil.exe, install the
windowsservice.exe ??? am i right? will it work?
Can anybody shed light on installation techniques in this
situation..
Thanks a million
regards
shiv
 
You need to put the contents of the UserClass.dll.config in the
WindowsService.exe.config file. This is because the config file of the
executing assembly is used to get configuration settings. The other points
you mentioned are rght. Just copy the files, use installutil and start your
service.
 
thanks jan, will try that.
tahnks a million
shiv
-----Original Message-----
You need to put the contents of the UserClass.dll.config in the
WindowsService.exe.config file. This is because the config file of the
executing assembly is used to get configuration settings. The other points
you mentioned are rght. Just copy the files, use installutil and start your
service.


--
Greetz,
Jan
__________________________________
Read my weblog: http://weblogs.asp.net/jan
"shiv" <[email protected]> schreef in bericht


.
 
Back
Top