Windows service not readign the config file

  • Thread starter Thread starter Kalpit
  • Start date Start date
K

Kalpit

I'm writing a windows service in vb.net
This service is not reading the app.config(Name
changed to service.exe.config) file at runtime .
The same code is working fine in a windows forms
application but withwindows service its not working.

PLs help me out
Kalpit singhal
 
Kalpit said:
I'm writing a windows service in vb.net
This service is not reading the app.config(Name
changed to service.exe.config) file at runtime .
The same code is working fine in a windows forms
application but withwindows service its not working.

PLs help me out
Kalpit singhal

Do you get an exception when you attempt any reads? It may be that the
directory from which the service is starting might not be the one in
which its installed.Try copying the configuration to System32 directory.
 
Back
Top