Home All Groups Group Topic Archive Search About
Author
13 Mar 2006 8:55 PM
raulavi
vb vs2003
in my bin folder I have a config file for my app "myConfig.exe" as
"myConfig.exe.config"
<?xml version="1.0" encoding="utf-8"?>
   <configuration>
     <appSettings>
       <add key="v3" value="Value 3" />
     </appSettings>
   </configuration>
If I execute the exe from the bin... the app finds my config file. If I run
it using debuger the config file is deleted and my app reports the config is
not found.
any reasons why my config is deleted ?
thanks for your help

Author
14 Mar 2006 3:36 PM
Claes Bergefall
Not sure why it's deleted, but you should make use of the built in support
for config files instead. Move the file so it is where the rest of you
source code is, rename it to app.config. and add it to your project. The
compiler will automatically copy it to your bin directory with the correct
name (myConfig.exe.config).

  /claes

Show quoteHide quote
"raulavi" <raul***@discussions.microsoft.com> wrote in message
news:F7280AB1-9ED0-4C81-BD6F-CD01D1145ED6@microsoft.com...
> vb vs2003
> in my bin folder I have a config file for my app "myConfig.exe" as
> "myConfig.exe.config"
> <?xml version="1.0" encoding="utf-8"?>
>   <configuration>
>     <appSettings>
>       <add key="v3" value="Value 3" />
>     </appSettings>
>   </configuration>
> If I execute the exe from the bin... the app finds my config file. If I
> run
> it using debuger the config file is deleted and my app reports the config
> is
> not found.
> any reasons why my config is deleted ?
> thanks for your help
>
>
>