configuration file is missing

K

Khor Soon Hua

i using .Net1.1 and develop a windows form application. i put some
application settings in the web configuration file and load the settings
when the form is loaded. however, everytime when i build the project the
configuration file is missing and deleted even from recycle bin. can
anyone tell me what's going on? the configuration file reside in the bin
directory which is the same as the executable file.
 
N

Nicholas Paldino [.NET/C# MVP]

Khor,

I believe that when you build a project in VS.NET, it cleans out the bin
directory before it performs a build. I think that what you have to do is
add the config file to your project, and I think that it will move it to the
bin directory on build.

Hope this helps.
 
J

José Joye

This is a change is version 1.1. the xxx.exe.config file is deleted and
recreated using..... App.config file which should be one of your project
files.
If you do not have it (or mis-spell it), the target will still be deleted
and you will loose hairs wondering why.

José

If you use Visual Studio, the
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top