答:需要现在工程里添加对system.configuration.dll 的引用 转载于:https://www.cnblogs.com/sexybomber/archive/2008/07/02/1234109.html