我创建了一个自定义配置部分,如下所示
<configSections>
</configSections>
<Tabs>
<Tab name="Dashboard" visibility="true" />
<Tab name="VirtualMachineRequest" visibility="true" />
<Tab name="SoftwareRequest" visibility="true" />
</Tabs>
自定义配置部分处理程序
namespace EDaaS.Web.Helper
{
public class CustomConfigurationHandler : ConfigurationSection
{
[ConfigurationProperty("visibility", DefaultValue = "true", IsRequired = false)]
public Boolean Visibility
{
get
{
return (Boolean)this["visibility"];
}
set
{
this["visibility"] = value;
}
}
}
}
运行应用程序时抛出异常 Unrecognized configuration section Tabs。如何解决这个问题?