About Us | Contact Us 
SEARCH in GO  
 

Welcome to MIND Sign in | Join | Help

Layered Architecture Sample

Last post 05-28-2008, 3:46 PM by Firedancer. 5 replies.
Sort Posts: Previous Next
  •  09-02-2007, 11:00 AM 2627

    Layered Architecture Sample

    Hi,

    I have recently made available some sample code on building .NET applications using the Layered Architecture design pattern on Codeplex. The sample demonstrates how we can layer our applications into Presentation, Business and Data. I have also included some samples on how to integrate Windows Communication Foundation (WCF) and Windows Workflow Foundation (WF) into the architecture as part of my own learning process.

    Please feel free to download the sample and explore. Feedback and comments are welcomed.

    Download: Layered Architected Sample


    Blog: http://serena-yeoh.blogspot.com
  •  09-24-2007, 4:42 PM 2831 in reply to 2627

    Re: Layered Architecture Sample

    Hi Serena,

    I got 2 questions to ask:

    1)

    I follow the readme file and configured correctly. But I got this error:

    The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state. 

    Then I debug the application and it went to the catch statement. I got this error

    ex = {"Could not connect to http://localhost:8000/ExpenseService. TCP error code 10061: No connection could be made because the target machine actively refused it. "} 

    I check in the web.config file

    <client>

    <endpoint name="ExpenseService" address="http://localhost:8000/ExpenseService" binding="wsHttpBinding" bindingConfiguration="ReliableMessaging" contract="ExpenseSample.Business.ServiceContracts.IExpenseServiceContract"/>

    </client>

     I just realize that I don't have this ExpneseService in the sample source code. How do I get that?

    client>

    <endpoint name="ExpenseService" address="http://localhost:8000/ExpenseService" binding="wsHttpBinding" bindingConfiguration="ReliableMessaging" contract="ExpenseSample.Business.ServiceContracts.IExpenseServiceContract"/>

    </client>

     I just realize that I don't have this ExpneseService in the sample source code. How do I get that?

    endpoint name="ExpenseService" address="http://localhost:8000/ExpenseService" binding="wsHttpBinding" bindingConfiguration="ReliableMessaging" contract="ExpenseSample.Business.ServiceContracts.IExpenseServiceContract"/>

    </client>

     I just realize that I don't have this ExpneseService in the sample source code. How do I get that?

    client>

     I just realize that I don't have this ExpneseService in the sample source code. How do I get that?

     I just realize that I don't have this ExpneseService in the sample source code. How do I get that?

     2)

    In the readme file, you mention this:

    This application requires that the PersistentStore and TrackingStore of the
       Windows Workflow Foundation to be installed and properly configured in ONE
       database named WorkflowStore.

     Can you be more specific on how to get those files installed and conifgure it to have the WorkflowStore? I already installed .NET Framework 3.0 and able to code wcf on the fly.

    Any help? Thanks.

     

     


    Best Regards,

    Chua Wen Ching
    Software Engineer Mesiniaga Berhad
    President of MIND Community
    Head of Academics for INETA Malaysia (APAC region)
    Microsoft Most Valuable Professional (MVP) - Visual Developer - Visual C#
  •  11-03-2007, 11:58 AM 2902 in reply to 2831

    Re: Layered Architecture Sample

    The "ExpenseService" name on the URL is just a name given to refer to the service. The code implementation is inside the ExpenseService class. Your WCF service refers to the service via the interface ExpenseSample.Business.ServiceContracts.IExpenseServiceContract

    To setup Workflow Persistence and Tracking, go to C:\Windows\Microsoft.NET\Framework\v3.0\Windows Workflow Foundation\SQL\EN folder and run the sql scripts there.

    Once configured, try to execute the sample again.


    Blog: http://serena-yeoh.blogspot.com
  •  11-07-2007, 1:00 PM 2908 in reply to 2627

    Re: Layered Architecture Sample

    Just to inform everyone,

    The November 2007 released is available today. So make your way to www.codeplex.com/layersample to get it.

    Thanks


    Blog: http://serena-yeoh.blogspot.com
  •  03-23-2008, 4:06 PM 3070 in reply to 2627

    Re: Layered Architecture Sample

    Just to inform everyone,

    The March 2008 released is available today. So make your way to www.codeplex.com/layersample to get it.

    Thanks

     P.S. C'mon guys/gals. Gimme some support lah.Stick out tongue


    Blog: http://serena-yeoh.blogspot.com
  •  05-28-2008, 3:46 PM 3124 in reply to 2627

    Re: Layered Architecture Sample

    Hi!

    The May 2008 Preview release is now available. You can download it from Codeplex.

    This release introduces some of the .NET 3.5 technologies (such as LINQ and WorkflowServices) into the architecture. It also has an optional Smart Client Software Factory application for SCSF developers to learn how to integrate the SCSF with LayerSample style applications.

    Do check it out.


    Blog: http://serena-yeoh.blogspot.com
View as RSS news feed in XML
 ©2006 Mind Community. All rights reserved. | Privacy Statements