none
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" ?>
    <configuration>
        <configSections>
            <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
                <section name="DDLMSOI2007PU2010.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
            </sectionGroup>
        </configSections>
    	<appSettings>
    		<add key="roombooking" value="123"/>
    	</appSettings>
        <system.diagnostics>
            <sources>
                <!-- This section defines the logging configuration for My.Application.Log -->
                <source name="DefaultSource" switchName="DefaultSwitch">
                    <listeners>
                        <add name="FileLog"/>
                        <!-- Uncomment the below section to write to the Application Event Log -->
                        <!--<add name="EventLog"/>-->
                    </listeners>
                </source>
            </sources>
            <switches>
                <add name="DefaultSwitch" value="Information" />
            </switches>
            <sharedListeners>
                <add name="FileLog"
                     type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
                     initializeData="FileLogWriter"/>
                <!-- 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"/> -->
            </sharedListeners>
        </system.diagnostics>
        <applicationSettings>
            <DDLMSOI2007PU2010.MySettings>
                <setting name="CodeSite" serializeAs="String">
                    <value>Selene:3434</value>
                </setting>
                <setting name="DatacraftRoomBookingURL" serializeAs="String">
                    <value>http:\\portia:9099\dwsapps-v1\outlook.aspx</value>
                </setting>
                <setting name="Logfile" serializeAs="String">
                    <value>Codesite</value>
                </setting>
                <setting name="EnableContextMenu" serializeAs="String">
                    <value>True</value>
                </setting>
            </DDLMSOI2007PU2010.MySettings>
        </applicationSettings>
    </configuration>
    

    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 ..

    Thanks


    • 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

Answers

All replies