How to implement Enterprise Library 5.0 with N-tier architecture. RRS feed

  • Question

  • User1493750612 posted

    Hi there,

     thanks for your valuable time for reading my problem.

    I have n-tier architecture:  a.  Presentation Layer

                                              b. Business Layer:    (i) BusinessLogic (ii) BusinessEntities

                                              c. DataLayer

                                             d.  ServiceLayer (WCF)

    I want to implement Exception, Caching, Logging using Enterprise Library 5.0.

    Please guide me how to proceed.I will be highly obliged if i can get the demo architecture or some help at your convenience.!!! 

    Sunday, February 6, 2011 8:23 AM


  • User220959680 posted

    Exception, Caching, Logging using Enterprise Library 5.0

    Exception Handling application block with logging application block

    Above application blocks from Enterprise library  can be utilised in BL, DAL and Servie layer, the reason is 'Exception application is used to implement consistent exception handling throughout your application using exception policies, those exceptions can be logged into windows logs, database, flat file or email. As exceptions may occur with in BL, DAL and Service layers you may consider utilisng exception application block with logging application block for consistent exception handling and logging.

    In order to implement refer my blog post at


    Caching app block

    As Caching application block can be used to cache frequently used data you may consider utilising this application block with data access layer.

    Conclusion: Consider wrapping these application blocks with in a class, then call methods throughout your application layers as required.

    David Hayden has whole set of resources http://www.pnpguidance.net/category/EnterpriseLibrary.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, February 6, 2011 6:49 PM