Hello Richard,
Thanks for your post. As I understand, the proboem you are facing is that
your application configuration file will be deleted automatically. To
narrow down the problem, I think more information is needed:
1. Where does the config file reside? Did you add it to your project?
2. Does the problem occur to a specific project or to all the projects? I
recommend you perform the following steps to check it:
a. Create a new C# console application.
b. Select the menu "Project" -> "Add New Item...".
c. Double-click the "Application configuration file" to add a config file.
d. Run the application and see if it will be deleted.
3. It seems to me that file is gone before starting your console
application, I believe that it may be deleted by other process say, VS .NET
IDE. Please use FileMon to find out which process deletes the config file.
You can download FileMon utility at
http://www.sysinternals.com/ntw2k/source/filemon.shtml.
I look forward to your response.
Regards,
HuangTM
Microsoft Online Partner Support
MCSE/MCSD
Get Secure! --
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.