wcf异常显示错误到客户端

0.当错误没有传到客户端时情形

解决方法

1.配置serviceBehaviors,将includeExceptionDetailInFaults设置为true

2.在服务上的ServiceBehaviorAttribute里面设置IncludeExceptionDetailInFaults

原文地址:https://www.cnblogs.com/hbhzz/p/3242741.html