0

I have my web application executing fine on localhost, however after deploying it to a remote web server (VM) I get.

"An error occurred while executing the command definition. See the inner exception for details."

HTTP 500 (Internal Server Error)

I'm using AngularJS, WebApi, EF 6 Database First and IIS 7

How to troubleshoot and get inner exception details?

I verified the query with Sql Profiler (no issues). I verified the Event logs (no issues)

3
  • hope this help link
    – Sachu
    Feb 15, 2016 at 5:05
  • I'm looking for some hints or where to capture the global exceptions and what settings if so are required in Web.config, I tried CustomError Off mode, I believe that shows the yellow screen will a complete dump of inner exception, but that did not work, I tried remoteOnly as well. I can see the 500 exception only through browser debug tool (F12). I appreciate you pitching in though.
    – billboard
    Feb 15, 2016 at 5:35
  • looks like a EF error. do you use any logger? like NLog or log4Net
    – th1rdey3
    Feb 15, 2016 at 6:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.