0

I changed my error pages in mvc 4 following this discussion.

handleerrorinfo using mvc

The problem is that when loading my page in error condition

Model != null && HttpContext.Current.IsDebuggingEnabled

ignores it and does not enter the condition. In web.config debug mode is enabled. By publishing it ignores and does not enter the condition, not showing the error on the test server. This missing something? Thank you.

Community
  • 1
  • 1
Fernando Arce
  • 332
  • 2
  • 14
  • I was thinking it can not be the new custom class of errors that enter. will? – Fernando Arce May 07 '14 at 11:36
  • My fault code is right. My problem was related to javascript error .. solved. sorry guys. I have a question only. The # if DEBUG works when it is compiled? – Fernando Arce May 07 '14 at 15:05
  • No, it's not works... check this http://stackoverflow.com/questions/4696175/razor-view-engine-how-to-enter-preprocessorif-debug – chemitaxis Feb 08 '15 at 22:35

0 Answers0