When I throw an ApplicationException and then handle it client side it works perfect locally. If I publish the website to the production server I never get the ApplicationException I just get a generic exception with a statrus code of 500. Anyone have any idea why this is happening?