There are several reasons for internal server Error 500, But today i was facing this error in local deployment of enterprise portal. Previously enterpise portal works perfectly fine. I solve it in two steps
- Restart the IIS.
- Regenerate the WCF configuration By clicking on refresh button from Dynamics Ax Server configuration. Following screenshot will help you.
Hopes this helps.