Self Hosted WCF REST Service or Hosting WCF REST Service in Console Application

Objective In this article, I will show you 1. How to create a REST based service? 2. How to host a REST based service in Console application? 3. How to consume a REST Service at client? Follow the steps as below, Step1 Create a New project. Select Console application as project type. Step 2 AddContinueContinue reading “Self Hosted WCF REST Service or Hosting WCF REST Service in Console Application”

Multiple Service Contracts in WCF Service

Objective In this article, I will show you, how we can have multiple contracts in WCF service. Block Diagram Above block diagram says 1. There are three contracts. 2. All contracts are being implemented in same service class. 3. Each contract is exposed on different end points. To start with follow the below steps, StepContinueContinue reading “Multiple Service Contracts in WCF Service”

Configuring Multiple End points for WCF Service

Objective In this article, I will explain how we could configure multiple binding for WCF service. To see the video tutorial of hosting WCF Service in Console Application Click Here While creating multiple endpoints for the service, make sure each end point is having unique address. If address is not unique, you will catch withContinueContinue reading “Configuring Multiple End points for WCF Service”

Hosting WCF service in Console Application

This video will explain , how to host a WCF Service in a Console Application For your reference soure code is as below , IService1.cs using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text;   namespace MultipleEndpoints {       [ServiceContract]     public interface IService1     {          ContinueContinue reading “Hosting WCF service in Console Application”

FAULT Contract in WCF with Learning Video

Video of the article is HERE  Objective This article will give basic introduction on 1. How to handle Exception at service side? 2. How to use Fault contract at Service side? 3. How to handle Service Exception at client side? Video explaining this article is here Few points about Exception at Service 1. Exception isContinueContinue reading “FAULT Contract in WCF with Learning Video”

Learning Video on Fault Contract in WCF

This video is giving basic explanation on How to work with Fault Contract. For reference Soure code is as below , IService1.cs using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text;   namespace demoFaultService {       [ServiceContract]     public interface IService1     {         [OperationContract ]        ContinueContinue reading “Learning Video on Fault Contract in WCF”

Shut Down, Restart, Log Off and Forced Log off System using c#

Objective In this article, I am going to show, How to Shut Down a machine How to Log Off a machine How to forced log off a machine How to restart a machine using c# To perform our task, very first let us create a windows application project. On form drag and drop four buttonsContinueContinue reading “Shut Down, Restart, Log Off and Forced Log off System using c#”

Custom Binding Part #2: creating a Basic REST service using CUSTOM Binding

In this article, I am going to show you how we could create a basic WCF REST service using custom binding. Part 1 of this article series could be read Here Follow the steps below, Step 1 Create a new WCF service application project. Delete all the default codes getting created by WCF. Step 2ContinueContinue reading “Custom Binding Part #2: creating a Basic REST service using CUSTOM Binding”

Inserting and Retrieving Image using LINQ to SQL from ASP.Net Application

Objective In this article, I am going to show you 1. How to insert an image from ASP.Net application to SQL Server using LINQ to SQL. 2. How to retrieve image from SQL Server data base using LINQ to SQL and display to an Image control. Block Diagram of solution Description of table For myContinueContinue reading “Inserting and Retrieving Image using LINQ to SQL from ASP.Net Application”

Simple Explanation for very beginners of Query String

Query String allows you to pass values between the asp.net pages. Let us say, you are navigating to below URL In above URL, you are navigating to a page called Add.aspx and Number1 and Number2 are query string to page Add.aspx. To create Query String, Add a question mark (?) to URL. After Question mark,ContinueContinue reading “Simple Explanation for very beginners of Query String”