changes in app.dll.config are not reflecting RRS feed

  • Question

  • Hi,

    I am developing an addin for outlook 2007 using visual studio 2010, this project also involve app.config file.

    <?xml version="1.0" encoding="utf-8" ?>
            <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
                <section name="DDLMSOI2007PU2010.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    		<add key="roombooking" value="123"/>
                <!-- This section defines the logging configuration for My.Application.Log -->
                <source name="DefaultSource" switchName="DefaultSwitch">
                        <add name="FileLog"/>
                        <!-- Uncomment the below section to write to the Application Event Log -->
                        <!--<add name="EventLog"/>-->
                <add name="DefaultSwitch" value="Information" />
                <add name="FileLog"
                     type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
                <!-- Uncomment the below section and replace APPLICATION_NAME with the name of your application to write to the Application Event Log -->
                <!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
                <setting name="CodeSite" serializeAs="String">
                <setting name="DatacraftRoomBookingURL" serializeAs="String">
                <setting name="Logfile" serializeAs="String">
                <setting name="EnableContextMenu" serializeAs="String">

    when i deploy the project, it creates a DDLMSOI2007PU2010.dll.config file in installation directory. when i change any setting in this file manually and then  i restart outlook,new changes do not reflect ,for example if i change the Logfile setting to Codesite4 , it do not reflect when i restarted outlook. it still saying value as Codesite.

    Note that my addin on target machine works fine other than this issue.

    one thing which i am also not sure why it is happening. in above configuration file i created <appSettings> section,when i deploy the addin project and restart outlook on the target machine,ConfigurationManager.AppSettings.Keys.Count is coming out to zero , however when i debug on developer machine it's coming out to 1.

    Also, when i deploy the same project using visual studio 2005, making changes in app.dll.config are reflecting.

    just to make sure, if this is a mechanism for deploying with visual studio2010, i just created a simplest window form application and added a app.config in it,i deployed the project on same target machine, it created a file windowformapplication.exe.config file in installation directory(c:\Progarm files...), now whenever i make change in the settings, it always reflects.

    note that, i am not making any changes programmatically, i am changing settings manually, by opening in dll.config file stored in installation directory.

    Anyone have idea, why its happening with outlook addin projects but not with window form application? is there any difference in mechanism.

    I am really stuck with this ..


    • Moved by Lie You Friday, March 2, 2012 2:37 AM Move it for better support. (From:Common Language Runtime)
    Tuesday, February 28, 2012 2:59 PM


All replies