How to resolve the SettingsFile error

0

I'm creating a project and in it, I use a theme to look beautiful. When I put the theme, all right, did not give any error or anything, just today, that gave this problem, and I can not see the Form. The error is as follows:

The Settings start tag on line 6 position 4 does not match the end tag of SettingsFile

If you need the file Settings.Designer I edit the question.

    
asked by anonymous 14.12.2015 / 23:25

1 answer

2

Let's debug this file, as the error says, in the Settings , line 6 tag.

  <?xml version="1.0" encoding="utf-8"?>
  <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="My" GeneratedClassName="MySettings" UseMySettingsClassName="true">
     <Profiles>
        <Profile Name="(Default)" />
     </Profiles>
     <Settings> <!-- linha 6 é essa -->
        <Setting Name="HWID" Type="System.String" Scope="User">
            <Value Profile="(Default)" />
        </Setting>
     <Settings /> <!-- Erro aqui, tag não finalizada (wtf é isso?) -->
</SettingsFile> <!-- linha 11 é essa -->

The error is on line 10, where you put <Settings /> instead of </Settings> . Consider this the corrected version:

  <?xml version="1.0" encoding="utf-8"?>
  <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="My" GeneratedClassName="MySettings" UseMySettingsClassName="true">
     <Profiles>
        <Profile Name="(Default)" />
     </Profiles>
     <Settings>
        <Setting Name="HWID" Type="System.String" Scope="User">
            <Value Profile="(Default)" />
        </Setting>
     </Settings>
</SettingsFile>

Always when closing a tag, use </ at the beginning of it, not at the end of it.

    
21.12.2015 / 07:02