APP.config需要跟控制台或者winform在同一程序集内 <service name="命名空间.类名"> 转载于:https://www.cnblogs.com/zyldream/p/3701674.html