摘要: 在处理WCF异常的时候,有大概几种方式:第一种是在配置文件中,将includeExceptionDetailInFaults设置为true<behavior name="serviceDebuBehavior"><serviceDebug includeExceptionDetailInFaults="true" /></behavior>但是这种方式会导致敏感信息泄漏的危险,一般我们仅仅在调试的时候才开启该属性,如果已经发布,为了安全,我们一般会设置成false。第二种方法是自定义错误,通过FaultExceptio 阅读全文
posted @ 2012-10-26 18:27 赵学智 阅读(4935) 评论(7) 推荐(3) 编辑