Hi!
I have made quite simple Windows Service using C# 2005. I also made
Setup for it into same solution. When I run Setup, it will be installed
ok into C:\Program Files\<MyCompan y>\<MyService> .
Setup is also installing self made default "settings.x ml"-file into the
same directory. It contains DataTable for the service how to work, that
service is reading into DataTable-object when it is started. These
settings are not same as <MyService>.exe .config settings.
Now the problem is that Service is trying to find this
"settings.x ml"-file of the C:\WINDOWS\Syst em32 instead of C:\Program
Files\<MyCompan y>\<MyService-path, when my "settingsHandle r"-class
contains declaration...
private const string FILE_PATH = "settings.x ml";
....and execution fails. How can I tell to the service it should find
this file of the "Application.St artupPath" ?
--
thanks in advance!
Mika
I have made quite simple Windows Service using C# 2005. I also made
Setup for it into same solution. When I run Setup, it will be installed
ok into C:\Program Files\<MyCompan y>\<MyService> .
Setup is also installing self made default "settings.x ml"-file into the
same directory. It contains DataTable for the service how to work, that
service is reading into DataTable-object when it is started. These
settings are not same as <MyService>.exe .config settings.
Now the problem is that Service is trying to find this
"settings.x ml"-file of the C:\WINDOWS\Syst em32 instead of C:\Program
Files\<MyCompan y>\<MyService-path, when my "settingsHandle r"-class
contains declaration...
private const string FILE_PATH = "settings.x ml";
....and execution fails. How can I tell to the service it should find
this file of the "Application.St artupPath" ?
--
thanks in advance!
Mika
Comment