473,387 Members | 1,882 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

configuration file is missing

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
3 2966
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Famille Delorme | last post by:
Sorry if this discussion are already submited, but I don't find anything really interresting for me. And sorry for my bad english, it is not my native language. I wrote a program in Python for a...
0
by: Pieter | last post by:
Hi, I migrated one of my solutions(VB.NET 1.1, containing a Windowds Forms project and a Class Library project) to the 2.0 Framework using the inbuild-wizard. After migrating the...
6
by: Lee Connell | last post by:
Hello, I am trying to use the Application blocks configuration manager. I am reading the docs on how to setup the app.config file to use the proper reader/writer. I want to use xml file. I...
2
by: genojoe | last post by:
http://msdn2.microsoft.com/en-us/library/system.configuration.configuration This site contains sample code that does not compile for me. The line of code is: ' Get the current configuration...
5
by: Joe Reiss | last post by:
Using vs2005, C# I'm writing some code to settings out of my app.config file. I seemed to be missing many fields from System.Configuration. For example System.Configuration.Configuration will...
8
by: Alberto | last post by:
Can you tell me how to read and modify a value in the app.config file using this class? Thank you very much
1
by: Shannon Richards | last post by:
Hello All: I have implemented a custom configuration section in my app.config file as follows: <configSections> <section name="AdminUIConfig" type="TestMgr.UIConfigSection,TestMgr"/>...
4
balabaster
by: balabaster | last post by:
Okay, I decided that I needed to understand the whole custom configuration file bits and so I've spent some time playing around with it. It seems (in the most) relatively straight forward. However,...
2
by: =?Utf-8?B?TWljaGFlbCBDb25yb3k=?= | last post by:
I added a user setting to my app. When I install it, I get: "Configuration system failed to initialize. Unrecognized configuration section userSettings)" The path to the file is correct... I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.