Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5943487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:24:10+00:00 2026-05-22T16:24:10+00:00

I’ve deployed an Outlook2007Addin and I’ve noticed in testing that changes I make to

  • 0

I’ve deployed an Outlook2007Addin and I’ve noticed in testing that changes I make to my app.config are not recognized. That is, I edit MyOutlookAddInName.dll.config in the install directory, save changes, and then bring up Outlook.

My addin behaves properly except for the fact that the changed values are ignored. Instead it operates with the “original” values. How can I make this addin responsive to changes in the dll.config immediately?

Here is a snippet from my initialization code and I’ve verified with debugger that values are indeed fetched from app.config:

    private string _TRIM_archiveFolderName = "TRIM Archives";
    private string _specialFolder = @"\INBOX\TRIM\";            // eg. \INBOX\TRIM makes a big difference
    private string saveAttachments = "Yes";
    private void ThisAddIn_Startup(object sender, System.EventArgs e)
    {
        log.Info("Application Start");
        try
        {
            _TRIM_archiveFolderName = Properties.Settings.Default.TRIM_ArchiveFolderName;
            _specialFolder = Properties.Settings.Default.TRIM_Upload_INBOX_Path;
            saveAttachments = Properties.Settings.Default.SaveAttachments;
        }
        catch (Exception ex)
        {
            log.Warn("App.Config error detected and ignored",ex);
        }

Here is the XML view of the Settings.settings file in my Visual Studio project:

    <?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="CBMI.Outlook2007AddInV7.Properties" GeneratedClassName="Settings">
  <Profiles />
  <Settings>
    <Setting Name="TRIM_ArchiveFolderName" Type="System.String" Scope="Application">
      <Value Profile="(Default)">TRIM Archives</Value>
    </Setting>
    <Setting Name="TRIM_Upload_INBOX_Path" Type="System.String" Scope="Application">
      <Value Profile="(Default)">\INBOX\TRIM\</Value>
    </Setting>
    <Setting Name="SaveAttachments" Type="System.String" Scope="Application">
      <Value Profile="(Default)">Yes</Value>
    </Setting>
    <Setting Name="TRIMconnectionParms" Type="System.String" Scope="Application">
      <Value Profile="(Default)">60~GROUPER~1137</Value>
    </Setting>
  </Settings>
</SettingsFile>

Here is how my dll.config looks in the install directory (before I changed it and saved changes):

    <?xml version="1.0"?>
<configuration>
  <configSections>
    <sectionGroup name="applicationSettings"
       type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
      <section name="CBMI.Outlook2007AddInV7.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
      <section name="FileServiceProxy.Properties.Settings"
          type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
          requirePermission="false" />
    </sectionGroup>
  </configSections>
  <applicationSettings>
    <CBMI.Outlook2007AddInV7.Properties.Settings>
      <setting name="TRIM_ArchiveFolderName" serializeAs="String">
        <value>TRIMArchives</value>
      </setting>
      <setting name="TRIM_Upload_INBOX_Path" serializeAs="String">
        <value>\INBOX\TRIM\</value>
      </setting>
      <setting name="SaveAttachments" serializeAs="String">
        <value>Yes</value>
      </setting>
      <setting name="TRIMconnectionParms" serializeAs="String">
        <value>60~GROUPER~1137</value>
      </setting>
    </CBMI.Outlook2007AddInV7.Properties.Settings>
    <FileServiceProxy.Properties.Settings>
      <setting name="FileServiceProxy_ASMXproxy_FileService" serializeAs="String">
        <value>http://mdwdata/sdkTrimFileServiceASMX/fileservice.asmx</value>
      </setting>
    </FileServiceProxy.Properties.Settings>
  </applicationSettings>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:24:10+00:00Added an answer on May 22, 2026 at 4:24 pm

    There may be other approaches to resolve this. However, I opened this thread on MSDN and someone helped me by suggesting the ConfigurationManager.RefreshSection method. See:

    http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/d8104247-3609-42f7-8e06-71860f3f81e2

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
We're building an app, our first using Rails 3, and we're having to build
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
I am writing an app with both english and french support. The app requests
I'm trying to create an if statement in PHP that prevents a single post

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.