Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 获取错误:无法识别的元素“grow”。读取配置文件时_C#_.net_Xml - Fatal编程技术网

C# 获取错误:无法识别的元素“grow”。读取配置文件时

C# 获取错误:无法识别的元素“grow”。读取配置文件时,c#,.net,xml,C#,.net,Xml,这是App.Config文件: <configuration> <configSections> <section name="StartupFolders" type="ConfigSectionTester.StartupFoldersConfigSection, ConfigSectionTester"/> </configSections> <StartupFolders nick ="abc">

这是App.Config文件:

<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" />