+ 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."
6 odpowiedzi
+ 9
Errors messages are helpful,
when the code is present.
+ 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...
+ 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
+ 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>
+ 1
Ok