IceFossil
IceFossil

Reputation: 81

Custom errors: Application_Error vs web.config

What advantage does one technique have over the other:

  1. Use Application_Error to handle exceptions or errors.
  2. Use defaultredirect in the web.config file.

Thanks.

Upvotes: 0

Views: 346

Answers (1)

Nate Pinchot
Nate Pinchot

Reputation: 3318

There may be other advantages or disadvantages, but the first thought that comes to mind is using Application_Error you are able to trap and log the error.

Upvotes: 1

Related Questions