Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

Query regarding WCF endpoint contract in the client

$
0
0

In a number of the examples in the CSLA e-books (i.e. UsingCsla4-04-DataPortal.pdf page 44) and in the sample WindowsUI client on github (https://github.com/MarimerLLC/csla/blob/master/Samples/NET/cs/SimpleNTier/WindowsUI/App.config) the client config is shown to be:

<endpoint .... contract="Csla.Server.Hosts.IWcfPortal"/>

However, if I put this into my client config, I get an 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.

If I then change if to the following, it works (but I am skeptical I have everything set up correctly!)

<endpoint .... contract="WcfPortal.IWcfPortal"/>

Are the examples incorrect, or am I missing something regarding different ways to set the client up?

FYI, I have the proxy set to:

<add key="CslaDataPortalProxy" value="Csla.DataPortalClient.WcfProxy, Csla"/>

 


Viewing all articles
Browse latest Browse all 764

Trending Articles