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

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