可能的原因: 1. Web 没有引用 Wcf.Web项目. 2. Web 的配置文件少了 connectionstring 转载于:https://www.cnblogs.com/Ken-Cai/archive/2012/06/21/2557471.html