Results 1 to 2 of 2

Thread: How to read App.config from windows Application

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2007
    Posts
    41

    How to read App.config from windows Application

    Hi All,
    I have windows application where i need to read specific value from app.config file, when i refer using configurationManager.appSettings("DBVersion") It return nothing , but i have value in app.config file like

    <appSettings>
    <add key="DBVersion" value="10" />
    </appSettings>

    Please let me know how to read this value from my Windows Application .

    Thanks,
    Mohan

  2. #2
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: How to read App.config from windows Application

    try this

    Code:
    ConfigurationSettings.AppSettings("DBVersion")
    __________________
    Rate the posts that helped you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width