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, Step … Continue 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 with … Continue 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     {           … Continue 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 is … Continue 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 ]         … Continue 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 buttons … Continue 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 2 … Continue 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 my … Continue 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, … Continue reading Simple Explanation for very beginners of Query String

7 queries on LINQ to SQL class

 In this article, I am going to show you how we can perform various operations using LINQ to SQL. Database description Let us say, I have created a database called ILPTrainee. This table got only one table with below structure EmpId is primary key here. For our explanation, I have put few records in the … Continue reading 7 queries on LINQ to SQL class