Client Configuration

The default app.config file that gets created by Visual Studio when making a service reference to WCF endpoints will contain the same settings as found in the service web.config.  Since SyncWCF.svc is configured with a clientCredentialType="None" client calls to the service endpoint will use Anonymous and fail.  It is recommended that the clientCredentialType in the client side app.config be set to Basic or Windows depending on the desired authentication.

<binding name="BasicHttpBinding_ICoreService">
  <security mode="Transport">
    <transport clientCredentialType="Basic" />
  </security>
</binding>

Additionally, in a Kerberos distributed environment, it is necessary to include the Service Principal Name (SPN) setting in the app.config by including the following nodes for each  <client><endpoint> element.

<identity>
  <servicePrincipalName value="spn"/>
</identity>

 The value of the value attribute should be set to a valid client SPN to avoid unexpected behavior in future .NET framework releases.  See the .NET Framework Readme for more information: http://download.microsoft.com/download/a/2/8/a2807f78-c861-4b66-9b31-9205c3f22252/dotnet35sp1readme.htm - Section 2.3.2.2

K2 blackpearl Developers Reference4.7
Video Links Learn Support
No videos found for this article
K2 on YouTube
No Additional links found for this article
No self-learning content for this article
Try some scenarios...
No relevant support links available for this article