Category Archives: Uncategorized

Opt-in Vs Opt-out in WCF

XmlSerializer was with Microsoft .NET since version 1.0 but with .NET framework version 3.0, Microsoft introduces DataContractSerializer. DataContractSerializer is the default serializer for WCF although we can still use XmlSerializer for serialization in Windows Communication Foundation. A basic difference between the two Serializers is the approach being used and that is the primary goal of… Read More »

Understanding WCF Bindings and Channel Stack

In order to understand Windows Communication Foundation Bindings in details, it’s important to understand the Channel Stack as part ofWCF runtime.WCF bindingis composed of binding elements and each binding element is corresponding to a specific channel in Channel Stack. The Channel Stackcan be categorized into two major areas i.e. Protocol Channels and Transport Channels.Protocol Channels… Read More »

How to register WCF with IIS and ASP.NET

If we have installed .NET framework before installing IIS on our machine and we wanted to deploy a WCF service. Then we need to do some additional steps by registering Windows Communication Foundation with IIS and ASP.NET. This WCF tutorial focuses on  simple steps to resolution. Firstly, register ASP.NET with IIS by executing following: C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis… Read More »

4 simple steps to enable tracing in WCF

Tracing mechanism in Windows Communication Foundation is based on the classes that resides in System.Diagnostic namespace. Important classes are Trace, TraceSource and TraceListener. For better understanding we will follow step by step approach in this WCF Tutorial. Following are the steps to enable tracing in WCF: Step 1. Configuring WCF to emit tracing information/Define Trace Source… Read More »