By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,660 Members | 1,520 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,660 IT Pros & Developers. It's quick & easy.

configuration file is missing

P: n/a
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.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Khor Soon Hua" <ce*******@hotmail.com> wrote in message
news:e5**************@TK2MSFTNGP12.phx.gbl...
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.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 13 '05 #2

P: n/a
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
"Khor Soon Hua" <ce*******@hotmail.com> wrote in message
news:e5**************@TK2MSFTNGP12.phx.gbl...
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.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 13 '05 #3

P: n/a
thanks a lot, Nicholas, it works, i solved my problem already.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.