0

ASP.NET MVC web application exception handling using application blocks.

How can i configure Microsoft Application blocks for exception handling in .NET MVC2 web application logging the error to the sql database?

1
  • Have you tried any approach? Commented Mar 2, 2013 at 23:18

2 Answers 2

1

You can write own Library bur this is not easy so i prefer u Use Elmah

I think elmah is good because now 588,786 is downloaded so we safely to use. You can simply install

PM> Install-Package elmah

ELMAH with initial configuration for getting started quickly. ELMAH (Error Logging Modules and Handlers) is an application-wide error logging facility that is completely pluggable. It can be dynamically added to a running ASP.NET web application, or even all ASP.NET web applications on a machine, without any need for re-compilation or re-deployment.

Sign up to request clarification or add additional context in comments.

Comments

0

You might want to think about ELMAH. It is much lighter than Application Blocks and you can use it as a filter for handling errors.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.