CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Forum has moved

New location: CSLA .NET forum


CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • DataPortal.CreateAsync does not call DataPortal_Create through the data portal using CSLA 4.5.501

    rated by 0 users
    Not Answered This post has 0 verified answers | 2 Replies | 2 Followers

    Top 100 Contributor
    77 Posts
    Russ Blair posted on Thu, Apr 10 2014 1:19 PM

    I am creating a Silverlight 5 application with the latest CSLA 4.5.501 (installed via Nuget). I am using the new async await syntax and have discovered that DataPortal.CreateAsync does not call the DataPortal_Create method on a simple BusinessBase object.

    If I change the DataPortal.CreateAsync call to DataPortal_FetchAsync in the factory method then it successfully calls the DataPortal_Fetch method through the data portal.

    Calling the CreateAsync with no parameters does not call the “protected override void DataPortal_Create()” method and calling CreateAsync with a single string parameter does not call the “protected void DataPortal_Create(string username)”.

    If I flag the DataPortal_Create method as [RunLocal] and move it outside the #if !SILVERLIGHT #endif block then the CreateAsync call works.

    Adding a try catch around the DataPortal.CreateAsync call does not catch any exceptions.

    I know my WCF configuration is correct because the DataPortal_Fetch works.

    Has anyone else observed this behaviour?

    All Replies

    Top 10 Contributor
    9,475 Posts

    The failure case is with a remote data portal?

    Rocky

    Top 100 Contributor
    77 Posts

    Yes.  My WCF configuration is copied from CSLA4.5.500\Samples\Net\cs\SimpleNTier solution.

    Page 1 of 1 (3 items) | RSS

    Copyright (c) 2006-2014 Marimer LLC. All rights reserved.
    Email admin@lhotka.net for support.
    Powered by Community Server (Non-Commercial Edition), by Telligent Systems