iis - Webapi HttpError missing exception information -


i getting webapi httperror application, expected, missing exceptionmessage, exceptiontype , stacktrace properties

here odd part - if run app locally (windows 8, iis) see the missing properties in response:

{ message: "an error has occurred." exceptionmessage: "unable continue." exceptiontype: "system.applicationexception" stacktrace: null }

now when build app , deploy our test server (windows server 2008 r2), here response:

{ message: "an error has occurred." }

i have compared iis locally , on test server, not seeing differences. made sure running same version of .net.

any ideas?

i had add line webapiconfig:

config.includeerrordetailpolicy = includeerrordetailpolicy.always;

httperror exception message not displaying when webapi run on server vs being run locally


Comments