WCF Remote data portal error

WCF Remote data portal error

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


rob.polak posted on Wednesday, August 04, 2010

Hello, I am trying to setup a remote data portal with CSLA 3.8.2.  I have it working for part of my project, however, on occation I get the following error:

Could not find endpoint element with name 'WcfDataPortal' and contract 'Csla.Server.Hosts.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.

I have not been able to figure out what is causing the error.  Here is my client config:

  <system.serviceModel>
    <client>
      <endpoint name="WcfDataPortal"
                address="http://xxx:80/EMS_Remote/EMSWcfPortal.svc"
                binding="wsHttpBinding" bindingConfiguration="wsHttpBindingSettings"
                contract="Csla.Server.Hosts.IWcfPortal" />
     
    </client>

    <bindings>
      <wsHttpBinding>
        <binding name="wsHttpBindingSettings" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" messageEncoding="Text">
          <!--<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />-->
        </binding>
      </wsHttpBinding>
    </bindings>
 
  </system.serviceModel>

 

<appSettings>

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

</appSettings>

 

Any help is appreciated!  Thanks!

Copyright (c) Marimer LLC