-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Prasanna_kakanoor
Message 2 in Discussion


Hi,
 
 You have to use same System.Configuration.ConfigurationSettings.AppSettings["Key 
name"]  method for reading the App.exe.cofig file. 
App.exe.Config file is same as we.config in the web application. For creating 
App.exe.config file, you have to do it manually by creating file name 
as  <application 
name>.exe.config.
 
Sample App.exe.config file looks as 
below
 
 


<configuration>

<appSettings>

<add key="sourceFileName" value="C:\test.txt"/>

<add key="DestFileName" value="c:\copy.txt"/>

</appSettings>

</configuration>
 
 
 
 
 
 
 


 Prasanna K L<o:p></o:p>

 Sr. Software 
Engineer<o:p></o:p>

[MCAD(CM) | 
MCSD.NET(Early Achiever)]<o:p></o:p>

<o:p> </o:p>

 ZapApp India Private Limited

  
Level G & 1, Explorer Building, 
  International TechPark, Whitefield Road, 

  Bangalore - 560 066. 
INDIA
  91-80- 5115 6050 extn. 
4061 (phone)
  91-80- 841 1858 
(fax)
  [EMAIL PROTECTED]<o:p></o:p>

<o:p> </o:p>

  
  -----Original Message-----
From: DotNetSavy 
  [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 01, 2003 4:54 
  PM
To: BDOTNET
Subject: To read the values from exe.config 
  file


  
    
      
      New Message on BDOTNET
    
      

  To read 
    the values from exe.config file


    
      
      
        Reply

        
          
            
            
               
              Reply to Sender   Recommend 
              Message 1 in 
                Discussion 
      
        
          
            
            
              From: DotNetSavy 
            
              

                Hi,
                 
                Pls provide some solutions for the following issues
                 
                1 : How to read custom settings from a AppName.Exe.Config file ? Is it 
the 
                same way as reading the Web.Config file in Asp.NET ?
                 
                2 : How to create a AppName.Exe.Config XML file ? Is there 
                anyway to do the same in VS.NET Editor ?
                 
                Thanks & Regards
                Suhas
                 
                 
                 
                 
View other groups in this 
    category. 



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to