On my local development machine, I have a WinForms app that connects to the WCF based DataPortal and everything works fine.
When I publish the DataPortal to the server and change my connection in my WinForm app to use the remote data portal, it throws the following exceptions:
"The caller was not authenicated by the service."
"The request for the security token could not be satisifed because authenication failed."
When I browse to http:://www.mycompany.com/DataPortal.svc, I get the proper information and can display the WSDL information, too.
My web.config has this in it:
<system.serviceModel>
<services>
<service name="Csla.Server.Hosts.WcfPortal" behaviorConfiguration="returnFaults">
<endpoint
contract="Csla.Server.Hosts.IWcfPortal"
binding="wsHttpBinding"
bindingConfiguration="wsHttpBinding_IWcfPortal"/>
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="wsHttpBinding_IWcfPortal" maxReceivedMessageSize="2147483647">
<readerQuotas
maxBytesPerRead="2147483647"
maxArrayLength="2147483647"
maxStringContentLength="2147483647"
maxNameTableCharCount="2147483647"
maxDepth="2147483647"/>
</binding>
</wsHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="returnFaults">
<serviceDebug includeExceptionDetailInFaults="true"/>
<serviceMetadata httpGetEnabled="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
And my app.config contains the usual CSLA settings:
<add key="CslaPropertyChangedMode" value="Windows"/>
<add key="CslaDataPortalProxy" value="Csla.DataPortalClient.WcfProxy, Csla"/>
<add key="CslaDataPortalUrl" value="http://www.mycompany.com/DataPortal.svc"/>
<add key="CslaAuthentication" value="Csla"/>
Any guidance for how I can use my data portal once it's published to the server?