关于报错system.transactions.diagnostics.diagnostictrace因为加了自定义 configsections
原因应该是configsections需要放在首节,
我测试可用的:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!-- 扩展节 -->
<configSections>
<sectionGroup name="TestGroup">
<section name="Test" type="System.Configuration.NameValueSectionHandler" />
</sectionGroup>
</configSections>
<!-- 连接字符串 -->
<connectionStrings>
<clear />
</connectionStrings>
<!-- 程序配置 -->
<appSettings>
<clear />
</appSettings>
<TestGroup>
<Test>
<add key="text1" value="text100" />
<add key="text2" value="text200" />
</Test>
</TestGroup>
</configuration>