c# - IIS 8 overwriting response body when status codes indicate failure -
i have wcf app running on server 2008 w/ iis 7.5 not have issue, , instance running on server 2012 w/ iis 8 have issue. when application sends response body status code indicates failure (400, 401, 500, etc), iis overwrite response body set 1 (example):
{"message":"authentication failed.","stacktrace":null,"exceptiontype":"system.invalidoperationexception"} this not asp.net mvc application cannot use response.tryskipiiscustomerrors.
i've tried setting system.webserver httperrors property no luck.
any idea how change can control response body server 2008 , iis 7.5 , not have overwritten? of responses made using weboperationcontext.current.
Comments
Post a Comment