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.
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
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