<userSettings> in app.config Could not find schema information for element 'userSettings'

Hi, when I try to add parameters to the settings table, I get several messages for each parameter added.

eg:.

  • Could not find schema information for element 'userSettings'

  • Could not find schema information for 'setting' element

  • Could not find schema information for attribute "serializeAs"

In app.config, I get:

<project1.Properties.Settings>
   <setting name="ccc" serializeAs="String">
      <value>vvv</value>
    </setting>
</project1.Properties.Settings>

I can use, edit and save this option, but the messages really annoy me.

I use the following scheme (and choosing others like 20 and 30 did not help):

C: \ Program Files (x86) \ Microsoft Visual Studio 9.0 \ xml \ Schemas \ DotNetConfig.xsd

Any ideas?

edit: Hans next post here are my configurations.

<configSections>
    <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
      <section name="project1.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
    </sectionGroup>
  </configSections>

, , , :)

Asaf

+3
2

, . , XML, project... RuthSiteManager...

, , . , "project1". .config . , <configSections>.

+2

. , , , " ", " ". , .

0

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


All Articles