Hey,
Is it possible to use Enterprise Library in a Windows Service?
I work in VS2005 and made an Windows Service, but I don't see an
app.config file. So, I created one appname.exe.config.
Then I went to the enterprise configuration tool to set my connection
string (I did the same in a WindowsForm application and it worked).
The appname.exe and the appname.exe.config I set under
C:\Program Files\Default Company Name\appname
When I start the service it always stop immediately with that error :
"The AppName service on Local Computer started and then stopped. Some
services stop automatically if they have no work to do, for example, the
Performance Logs and Alerts service."
If I run the service with
Database db = DatabaseFactory.CreateDatabase(); in comments then it
starts and run normally.
I don't see why it don't work in a Windows service.
Thanks,
nic
*** Sent via Developersdex
http://www.developersdex.com ***