为什么系统拒绝web.config中的自定义元素?

时间:2014-06-25 10:13:09

标签: c# asp.net web-config

我在Web配置中有一个包含许多自定义元素的项目。它们看起来像这样:

   <componentOrders>
<componentOrder>
  <add order ="1" component ="Kitchen" componentName ="Renew Standard Kitchen Type" description="new kitchen units and vinyl flooring"/>
  <add order ="2" component ="Bathroom" componentName ="Renew Bath/WHB/WC Bathroom Suite" description="new bathroom suite and floor covering" />
  <add order ="3" component ="Bathroom" componentName ="Renew Bath/WHB Bathroom Suite" description="new bathroom suite and floor covering" />
  <add order ="4" component ="Bathroom" componentName ="Renew Shower/WHB Bathroom Suite" description="new bathroom suite and floor covering" />
  <add order ="5" component ="Bathroom" componentName ="Renew Shower/WHB/WC Bathroom Suite" description="new bathroom suite and floor covering" />
  <add order ="6" component ="Bathroom" componentName ="Renew WC/WHB/Bath/Shower Bathroom Suite" description="new bathroom suite and floor covering" />
  <add order ="7" component ="Bathroom" componentName ="Renew WC/WHB/Shower Bathroom Suite" description="new bathroom suite and floor covering" />
  <add order ="8" component ="Roofing" componentName ="Renew Roof Material" description="new main roof tiled finish and underlay" />
  <add order ="9" component ="Pointing of mortar joints" componentName ="Renew Brick &amp; Mortar Wall Finish" description="repointing of the mortar joints in your external brickwork walls" />
  <add order ="10" component ="Front Door" componentName ="Front Doors" description="new front door and frame"/>
  <add order ="11" component ="Back Door" componentName ="Rear Doors" description="new back door and frame"/>
</componentOrder>

当我尝试运行此命令时,出现以下错误:分析程序错误消息:条目&#39;浴室&#39;已被添加。

为什么它甚至验证我的自定义元素?我要求这两行显示相同的值 - 就像报告中使用的那样。

0 个答案:

没有答案