Your configuration file is slightly misordered. You're need to have the<configSections>... </configSections>
node be the first node under<configuration>
instead of the <appSettings>
.
出自: http://tech.pro/q/11/systemconfigurationconfigurationerrorsexception-inside-windows-service