Hello Guys
I am facing some problem with Appconfig setting
I am using VS 2003 and write a config file and place it in BIN/Debug directory
And according to the .Net architecture it should add the file when it starts for execution.
the content of my prj.exe.config file is
=================================================
====================================================
and i am trying to read it using the following codes.
System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
UserID = ((string)(configurationAppSettings.GetValue("USERID", typeof(string))));
UserPassword = ((string)(configurationAppSettings.GetValue("USERPASSWORD", typeof(string))));
But the problem is when i run the program it gives an exception and says USERID cannot find.
And deletes the config file.
Can anyone pls tell me where is the problem .
Thanks