>Whenever I try to start my service application, the config file is
erased and I get an application exception trying to read it. When I
make it read only, everything is fine.
Anyone know why this erasing happens in the bin\debug directory?
Because it was designed to do this?
What did you call your config file? Did you add it to your VS.NET
project?
The trick is to add a text file called "app.config" - exactly that, no
replacements or changes to the name!!!!! - and then VS.NET will always
rename it to <yourapp.exe.config> and place it in your output bin
directory for you.
VS.NET 2003 even has a "Add New Item > Utility > Application
configuration file" menu item, which does exactly that - add a text
file called "app.config" to your current project.
Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch