There is such an app.config file in Appendix "A":
<?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <section name="AutoCalcService.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> </sectionGroup> <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <section name="AutoCalcService.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> </sectionGroup> </configSections> <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/></startup> <userSettings> <AutoCalcService.Properties.Settings> <setting name="RoutesOptimize" serializeAs="String"> <value>False</value> </setting> <setting name="NotificationSender" serializeAs="String"> <value>value1</value> </setting> <setting name="NotificationTitle" serializeAs="String"> <value>value2</value> </setting> <setting name="NotificationMessage" serializeAs="String"> <value>value3</value> </setting> </AutoCalcService.Properties.Settings> </userSettings> <applicationSettings> <AutoCalcService.Properties.Settings> <setting name="NotificationGoogleAppId" serializeAs="String"> <value>value4</value> </setting> </AutoCalcService.Properties.Settings> </applicationSettings>
Task: to access it from application "B", which is in no way connected with it, and allow application "B" to edit the settings in section of application "A" (the section is read-only) - that is, make admin panel! The ability to architecturally render app.config into a separate application and "inherit" both "A" and "B" from it - alas, no.
I managed to get the Configuration itself and even its individual sections like this:
string otherExePath = @"DLAutoCalcService.exe"; Configuration otherConfig = ConfigurationManager.OpenExeConfiguration(otherExePath); var sectgr = otherConfig.SectionGroups["userSettings"]; var sect = sectgr.Sections["AutoCalcService.Properties.Settings"];
The sectgr (ConfigurationSectionGroup type) and sect (ConfigurationSection type) objects are not null, and the sect even has my settings, but I cannot “reach out” to them. In sect public members, the Settings property (as seen in the screenshot) is missing.

Please help me continue my code until getting, changing and saving changes using the example of setting "RoutesOptimize".