Fault Contract’1 was unhandled by user code: Solved

For a training purpose I was trying a basic demo on fault contract in WCF and to be surprised I Got below error while throwing FaultException. It’s not that 1st time I was working on Fault Contract but this error was irritating. After some investigation I found there was some issue in visual studio 2013 … Continue reading Fault Contract’1 was unhandled by user code: Solved

Publish WCF Service in Local IIS on Visual Studio 2013

Long back I wrote a blog post Step by Step hosting WCF Service in IIS 7.5 . In this post I used Visual Studio 2012 as I remember. Today I was trying to host WCF in local IIS in Visual Studio 2013 and found it is surprisingly easy to host WCF Service in IIS 2013 … Continue reading Publish WCF Service in Local IIS on Visual Studio 2013

Solved Access-Control-Allow-Origin Error in WCF REST Service

  Recently I was working on a JSON based WCF REST Service. It was a simple service performing CRUD operation. When I tried to consume service from a web based client, got following errors in browser console. Error message was, No Access-Control-Allow-Origin header is present on the required resource. Since service was running on different … Continue reading Solved Access-Control-Allow-Origin Error in WCF REST Service

Dealing Multiple EndPoints of a WCF Service

If you know EndPoints well, you know WCF well. Configuring EndPoints are vital for any WCF design. You can configure EndPoints either via code or in web.config file. I have seen many times, developers are confused with EndPoints. I have come across following common question about EndPoints Can we have multiple EndPoints? Can be expose … Continue reading Dealing Multiple EndPoints of a WCF Service

All about Instance Management in WCF

When I started learning WCF, First thing I learnt was “Service is just like another class”. Okay so if WCF is a class which instance of class will handle request from client? Confusing? May be! In this post let us explore WCF Instance Management. In WCF, Instance Management is a technique to decide which service … Continue reading All about Instance Management in WCF