locked
Layer Architecture ( In multiple Solution) RRS feed

  • Question

  • Hi All,

    I have divided layered Archicture in four solution. I have created Data Access Layered, Busines, Services(include Host), Presentation as different solution.

    Now i am working in Business and services layered, how i can step through my code works fine not.

    But in the Data Access layered and presentation Layered we can step through the code with the windows or web aplication but i can not step through Business and service layered .

    Whether i can step through the code or not? I need suggestion and guidances.


    prathap

    Thursday, March 8, 2012 8:07 AM

Answers

  • @Prathap - I believe I understand your situation. See you separated each layer as a separate .NET solution and what you should have done is made each layer a separate .NET project within a single .NET solution.

    You can not debug compiled code from separate solutions. However if each layer is a separate clall library project within 1 solution, you can just add a 'Project Reference' to each different layer where needed, and you will be able to debug the different layers. A conceptual layout is below:

    Solution: MyProject.sln

    -------> MyProject.UI WebForm/WinForm/etc. project

    -------> MyProject.BLL Class Library

    -------> MyProject.DAL Class Library

    Hope this helps!


    Thank you,


    • Edited by atconway Friday, March 9, 2012 8:51 PM
    • Proposed as answer by atconway Friday, March 9, 2012 8:51 PM
    • Marked as answer by Prathap Kumar Monday, March 12, 2012 6:39 AM
    Friday, March 9, 2012 8:50 PM

All replies

  • Hi Pratap,

    I understand your concern is around debuggin the variuous layers of UI, BL and DataAccess etc.

    But your description doesn't clearly state what is working and what is not.

    Could you please make your language more clear and understandable.

    Thanks

     


    Vidya Vrat Agarwal. http://dotnetpassion.blogspot,com

    Friday, March 9, 2012 8:06 PM
  • @Prathap - I believe I understand your situation. See you separated each layer as a separate .NET solution and what you should have done is made each layer a separate .NET project within a single .NET solution.

    You can not debug compiled code from separate solutions. However if each layer is a separate clall library project within 1 solution, you can just add a 'Project Reference' to each different layer where needed, and you will be able to debug the different layers. A conceptual layout is below:

    Solution: MyProject.sln

    -------> MyProject.UI WebForm/WinForm/etc. project

    -------> MyProject.BLL Class Library

    -------> MyProject.DAL Class Library

    Hope this helps!


    Thank you,


    • Edited by atconway Friday, March 9, 2012 8:51 PM
    • Proposed as answer by atconway Friday, March 9, 2012 8:51 PM
    • Marked as answer by Prathap Kumar Monday, March 12, 2012 6:39 AM
    Friday, March 9, 2012 8:50 PM
  • Hi Atconway, Vidya,

                 Thanks for your reply.


    prathap

    Monday, March 12, 2012 6:41 AM