WCF IErrorHandler Extension not returning specified Fault

前端 未结 3 1512
心在旅途
心在旅途 2021-01-15 01:08

Hopefully there are some WCF wizards out there that can spot my mistake here.

I am trying to set up a global error handler via an IErrorHandler based behaviorExtens

3条回答
  •  我在风中等你
    2021-01-15 01:50

    Don't forget to set the ContentType of the response as well:

    rmp.Headers[HttpResponseHeader.ContentType] = "application/json";
    

提交回复
热议问题