+ 1

XML Rootelement error

I have an error in my XML file. The error list say: "Application Configuration file "App.config" is invalid. The 'configuration' start tag on line 3 position 2 does not match the end tag of 'rootElement'. Line 25, position 7."

17th Mar 2018, 2:16 AM
SebGM2018
SebGM2018 - avatar
6 ответов
+ 9
Errors messages are helpful, when the code is present.
17th Mar 2018, 2:59 AM
Manual
Manual - avatar
+ 4
Maybe this link will help you better: I just tried to look line by line but couldn't spot it right off. I'm almost certain it is something small that is being overlooked. https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/application-settings-schema By the way, thank you for displaying the code...
17th Mar 2018, 3:29 AM
BroFar
BroFar - avatar
+ 2
The error says that configuration start tag and end tags are not matching. please check if all the tags are properly closed or not still incase of issues pls post your xml file
17th Mar 2018, 3:01 AM
kaliki chandu
kaliki chandu - avatar
+ 2
Te Code is : <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <section name="ProjectReminders.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> </sectionGroup> </configSections> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /> </startup> <userSettings> <Reminders.Settings> <setting name="Sound" serializeAs="String"> <value>True</value> </setting> <setting name="Counter" serializeAs="String"> <value>0</value> </setting> <setting name="Settings" serializeAs="String"> <value /> </setting> </Reminders.Settings> </userSettings> </configuration>
17th Mar 2018, 3:08 AM
SebGM2018
SebGM2018 - avatar
+ 1
Ok
17th Mar 2018, 3:03 AM
SebGM2018
SebGM2018 - avatar