Asp.Net MVC Error Handling & logging

Posted by Navish Rampal on Stack Overflow See other posts from Stack Overflow or by Navish Rampal
Published on 2011-01-04T18:44:29Z Indexed on 2011/01/04 18:53 UTC
Read the original article Hit count: 138

Filed under:
|
|
|

I am trying to Catch exceptions and log it.

Presently I have written a Utility method and Passing the Exception to it in the catch block and finally logging the application using MS Enterprise Library 4.0.

  1. I want to know is there any other better way to log errors.
  2. Show exception message in the same view for some type of exceptions for rest navigate to error page.

If someone can help me on this!

Navish

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about error