使用ConfigurationManager需要在.net引用中添加System.Configuration引用 转载于:https://www.cnblogs.com/qqingmu/archive/2008/06/04/1213367.html