Unrecognized configuration section application

My application works fine on the development computer, but when I run it on the client PC, I get an exception: "Failed to initialize the configuration system", with innerException msg = "Unrecognized configuration section applicationSettings" I checked my configuration file with all the solutions that I could find on the internet, but it seems OK. Any thoughts or suggestions would be greatly appreciated. The configuration file is located below.

<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <section name="KIM.Eplex.PCMU.PLayer.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> <section name="EplexPCMU.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> </sectionGroup> <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <section name="KIM.Eplex.PCMU.PLayer.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> </sectionGroup> </configSections> <userSettings> <KIM.Eplex.PCMU.PLayer.Properties.Settings> <setting name="DataTransferPath" serializeAs="String"> <value /> </setting> <setting name="DiagnosticLockTypeIndex" serializeAs="String"> <value>0</value> </setting> <setting name="SystemType" serializeAs="String"> <value>2</value> </setting> <setting name="NumAuditEvents" serializeAs="String"> <value>100</value> </setting> <setting name="AuditStartAt" serializeAs="String"> <value>0</value> </setting> </KIM.Eplex.PCMU.PLayer.Properties.Settings> <EplexPCMU.Properties.Settings> <setting name="centre" serializeAs="String"> <value>200, 200</value> </setting> </EplexPCMU.Properties.Settings> </userSettings> <applicationSettings> <KIM.Eplex.PCMU.PLayer.Properties.Settings> <setting name="DiffProgEnabled" serializeAs="String"> <value>0</value> </setting> </KIM.Eplex.PCMU.PLayer.Properties.Settings> </applicationSettings> </configuration> 
+4
source share
1 answer

If it works on your development machine, there is a problem with registering the partition. You have an application group configured to type System.Configuration.ApplicationSettingsGroup .

Check the target machine to build System.Configuration and make sure the version matches the version you have in the section. Group registration.

+5
source

Source: https://habr.com/ru/post/1335134/


All Articles