I have a Web API controller POST method that behaves fine locally and on the testing server. If everything goes well it returns:
new HttpResponseMessage( Htt
Take a look at this MSDN post on the HttpConfiguration.IncludesErrorDetailPolicy:
In your Global.asax:
var config = GlobalConfiguration.Configuration;
config.IncludeErrorDetailPolicy = IncludeErrorDetailPolicy.Always;
I have used this configuration property to force error messages to include details.