Add reference System.Configuration 转载于:https://www.cnblogs.com/yangbin990/archive/2009/09/08/1562516.html