Tag Archives: WCF

Memory leak within WCF?

Memory leak within WCF? So yesterday my team had to trace a possible memory issue within our application. We used the built in memory tools within Visual Studio and identified that the ‘leak’ was within our WCF infrastructure. What was strange was that the problem came from the System.ServiceModel.Channels.BufferManager which is native .net code… So how… Read More »

The authentication schemes configured on the host (‘IntegratedWindowsAuthentication’)

The authentication schemes configured on the host (‘IntegratedWindowsAuthentication’) do not allow those configured on the binding ‘WS2007HttpBinding’ (‘Anonymous’).  Please ensure that the SecurityMode is set to Transport or TransportCredentialOnly.  Additionally, this may be resolved by changing the authentication schemes for this application through the IIS management tool, through the ServiceHost.Authentication.AuthenticationSchemes property, in the application configuration… Read More »

Extending WCF with behaviours.

WCF provides the developer with the means of extending the service model through the use of behaviors. The behaviours get defined by four interfaces types.  IServiceBehavior, IEndpointBehavior, IContractBehavior and IOperationBehavior. All of these interfaces follow the same template which allows the developer to inject, alter or validate values before dispatching a call. The order in which the methods are called is Validate, ApplyDispatchBehavior and… Read More »

Creating your own Active STS

The following example uses an active security token service (A-STS) that issues tokens using the WS-Trust standard. The type of STS discussed in this post is called a Active STS OR A-STS, it refers to the client that is actively in control of its own authenticated state. This client will typically have its own login window build into the… Read More »

Version tolerance with WCF

As I stated earlier in a post; “WCF is version tolerant it does not have specific version support. It will adjust the data contracts according to what the client and service is expecting.” The IExtensibleDataObject is the key to have version tolerance. The Microsoft site states the following about this interface. The IExtensibleDataObject interface provides a single… Read More »

Ever heard of the ICommunicationObject Interface?

How do you know if a WCF service is up and running if all you have is the channel and you don’t actually have access to the real proxy? The ICommunicationObject Interface provides you with a solution for this exact problem as it provides the developer with a abstract way to open, close and check the state of connections.