Problem in reading the app.config file in windows application. RRS feed

  • Question

  • Hi all,

    I have a windows application which is outlook com Addin i.e, a custom ribbon is generated in the outlook using our application.Application consists of two projects the first one is the windows forms applicaion and the other is setup project and i have only one app.config file.

    When i am trying to access the appsettings section from the forms its is returning empty values.

    Any help would be greatly appreciated.

    Tuesday, May 18, 2010 1:22 PM


  • Hi there,

    I can image the app is started from a different location as where it is installed? You could try to get the location the app is started from by using this:


    Another thing I can imagine is your app is started (by Outlook) with different credentials, and that you don't have enough rights to read the config with those credentials.

    Hope this helps.

    Mark the best replies as answers - Twitter: @rickvdbosch - Blog:
    • Marked as answer by Harry Zhu Wednesday, May 26, 2010 2:49 AM
    Tuesday, May 18, 2010 1:57 PM