My AngularJS makes RESTful API calls to my ApiController.
Everything works fine in localhost, but returns a boring and frustrating {"message":"An error has occurred."}
when testing on IIS Server.
I have made sure these things are in place. There is a good post in here.
<system.webServer>
<httpErrors existingResponse="PassThrough" />
</system.webServer>
<system.web>
<customErrors mode="Off"/>
</system.web>
On the IIS7, I go to Error Pages
>> Edit Feature Settings
>> Error Responses
is now Detailed errors
.
How can we see the detailed exception? Have I missed something else?