InventoryDemo needs to be upgraded to CSLA 4.5 & SL 5.0

InventoryDemo needs to be upgraded to CSLA 4.5 & SL 5.0

Old forum URL: forums.lhotka.net/forums/t/11809.aspx


NET-H24 posted on Wednesday, January 30, 2013

The InventoryDemo needs an upgrade to be compatible to

CSLA 4.5

SL 5.0

Please do let us know if we have any plan for updated Sample Code.

NET-H24 replied on Thursday, January 31, 2013

 I have started updating the Project myself but seems am missing something silly here.

Updates in the code base are as follows

public class CompressedHost : Csla.Server.Hosts.Silverlight.WcfPortal

to

public class CompressedHost : Csla.Server.Hosts.Mobile.WcfPortal

 

The Config File is updated as

<services>
            <service behaviorConfiguration="WcfPortalBehavior" name="InvLib.Compression.CompressedHost">
                <endpoint address="" binding="basicHttpBinding" contract="Csla.Server.Hosts.IWcfPortal" bindingConfiguration="BasicHttpBinding_IWcfPortal">
                </endpoint>
            </service>
        </services>

Also tried

<services>
            <service behaviorConfiguration="WcfPortalBehavior" name="InvLib.Compression.CompressedHost">
                <endpoint address="" binding="basicHttpBinding" contract="Csla.Server.Hosts.Mobile.IWcfPortal" bindingConfiguration="BasicHttpBinding_IWcfPortal">
                </endpoint>

          </service>      

</services>

 

The Page displays but none of the methods are invoked on the Server side, it flashes following error

System.InvalidOperationException: Could not find endpoint element with name 'WcfDataPortal' and contract 'WcfPortal.IWcfPortal' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()

   at Csla.DataPortal`1.<BeginFetch>d__1e.MoveNext()

Please advise

wasiuddin.786 replied on Tuesday, June 25, 2013

i am also facing same problem if got the solution please update me,recently i am change to csla 4.5 and sl5

Copyright (c) Marimer LLC