最近项目中,在类库中引用wcf,报"Could not find default endpoint element that references contract 'ServiceReferenceReview.IReviewService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element."的错误。
上网查了下资料,发现时因为类库中配置了wcf客户端的终结点,但在引用类库的项目上,却没有配置。将配置信息,添加的项目配置文件中。问题解决。
在此记录,以免以后遗忘解决方法。