C# 获取错误:无法识别的元素“grow”。读取配置文件时
这是App.Config文件:C# 获取错误:无法识别的元素“grow”。读取配置文件时,c#,.net,xml,C#,.net,Xml,这是App.Config文件: <configuration> <configSections> <section name="StartupFolders" type="ConfigSectionTester.StartupFoldersConfigSection, ConfigSectionTester"/> </configSections> <StartupFolders nick ="abc">
<configuration>
<configSections>
<section name="StartupFolders" type="ConfigSectionTester.StartupFoldersConfigSection, ConfigSectionTester"/>
</configSections>
<StartupFolders nick ="abc">
<Folder>
<grow reader-type="PBV" />
<add folderType="A" path="C:\foo" />
<add folderType="B" path="B:\foo1" />
<add folderType="C" />
</Folder>
<Files nikkie ="deaf">
<add fileType="File 1" />
</Files>
</StartupFolders>
</configuration>
一切都很顺利,直到我补充说:
<grow reader-type="PBV" />
我发现以下错误:
无法识别的元素“grow”
我是新来的。我做错了什么?你能告诉我投票失败的原因吗?我不是那个投票失败的人。查看你的app.config设置-元素增长语法不正确-只允许语法是Key,Value-我不这么认为,因为正如你在我的配置文件的其余部分中所看到的,我定义了很多除Key以外的属性。价值我也能读。但我不知道如何阅读grow,因为它似乎是嵌套的。
<grow reader-type="PBV" />