Who's Online
11 visitors online now
0 guests, 11 bots, 0 members
Support my Sponsor

Search Result returns Document Title instead of Filename

This is one of the know issues for Search in SharePoint ,if you have CU October or later installed on your servers.

Follow below steps to fix the issue:-

1.Go to Central Admin —> Manager Service Application —> Search Service Application.

2.On search administration page,click on Search Schema under Queries and results.

Search Schema

3.Click on Crawled properties and Search for the properties  called Title.

Crawled Properties

4.Once you find the Title property, click on it and edit.

5.Scroll Down and go to mappings to crawled properties.Select the “MetadataExtractorTitle” and move it down to last place,Click OK.

Mapping Crawled

6.Perform an index reset.Click on Index reset and select option to deactivate search alerts, Click OK.

7.After index reset.Click on Content Sources and start full crawl (in my case it was local SharePoint site).

8.Once Full Crawl is completed, Search result will return filename instead of document heading/title.


Microsoft Build 2016


Hi All,


As you all know Microsoft is running a three days BUILD conference starting March 30. Microsoft’s annual Build developer conference runs from March 30 to April 1 in San Francisco. Microsoft Build is Microsoft’s biggest developer event. As per sources this year, Microsoft will talk a lot about cloud and IoT to be the big themes this year.


Microsoft will be streaming the Day 1 and 2 keynotes (Wednesday and Thursday from 8:30 a.m. PT to 11:30 a.m. PT) which you can see on same link below.


Day 1 starts off with a long keynote with various Microsoft executives, guests, and Microsoft’s CEO, Satya Nadella. This keynote focuses mostly on Windows including new features and new tools for developers. Here is where you will learn what is coming next in Windows 10 for desktop, mobile, Windows 10 on Xbox, HoloLens, and the Internet of Things (IoT).

 The Day 1 and Day 2 keynote starts at 11:30 AM EST which is 9 pm IST and is expected to be Live for around 2.5 hours


You might hear a lot about how Microsoft’s HoloLens could change communication via ‘Holoportation’, Microsoft Graph which is a smarter, stickier apps. Microsoft’s multi-pronged strategy for bringing speech to IoT devices, Microsoft’s private preview of Visual Studio Next, Microsoft starts rolling out Office 365 Connectors as part of Groups


You can check more details HERE



Hope you will enjoy it


14th March 2016 : Most awaited SharePoint 2016 RTM launched today


Hi All,


The most awaited SharePoint 2016 RTM launched few minutes back. It is a very important milestone for SharePoint 2016 roadmap. SharePoint 2016 is the 1st version of SharePoint which has most of Hybrid features.


SharePoint 16 has revealed lot of new capabilities for end users, SharePoint administrators and developers. Enhanced hybrid Service applications will bring the world closure to Office 365 and Windows Azure.


You can learn a lot more through SharePoint Server 2016 reviewer’s guide which has awesome use cases and lot of helpful information around SharePoint 2016. You can even download the trial version of of the SharePoint 2016 RTM.


One of the biggest changes in Project Server 2016 is the installation process is that Project Server 2016 runs as a service application in SharePoint Server 2016. The SharePoint Server 2016 MSI file will contain the installation files for Project Server 2016 as well, so a separate installation is no longer required as it was in previous versions of Project Server. Activating Project Server 2016 will require a PID key.


On May 4, 2016 there is a live online event to celebrate SharePoint 2016 share roadmap for the future of SharePoint Vnext. Jeff Teper(CVP for OneDrive and SharePoint) will share more indepth and future plans for SharePoint and OneDrive for Business for both on-premises and in the cloud with Office 365. To register your self for this event click here


Now few helpful resources for SharePoint Server 2016

Download the RTM Trial.
See what’s new with a demo on Microsoft Mechanics.
Download the reviewer’s guide.
Learn more about cloud hybrid search at


Wish you all the best for your future with SharePoint 2016.

MySQL server Replication

Hello Everyone,

Today we are doing mysql replication, for Mysql installation you can refer my previous blogs

for this setup we need to VM installed Mysql, server which contain primary DB will be “Master” & server which has replica of the DB know as a “Slave”

lets start the replication.


Configure MySQL Master

1) Need to edit “/etc/my.cnf”

server-id = 1
binlog-do-db=otrs #dbname
relay-log = /var/lib/mysql/mysql-relay-bin
relay-log-index = /var/lib/mysql/mysql-relay-bin.index
log-error = /var/lib/mysql/mysql.err
master-info-file = /var/lib/mysql/
relay-log-info-file = /var/lib/mysql/
log-bin = mysql-bin

2) Restart the mysql service

# service mysqld restart

3) create a Slave user and password. For instance

[root@OtrsMaster ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 17
Server version: 5.1.73-log Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.


mysql> STOP SLAVE;
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> GRANT REPLICATION SLAVE ON *.* TO ‘centos’@’%’ IDENTIFIED BY ‘centos’;
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)

5) Applied Read only lock on slave

Query OK, 0 rows affected (0.00 sec)

| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
| mysql-bin.000001 | 106 | otrs | |
1 row in set (0.00 sec)

6) Note down the file (mysql-bin.000001) and position number (106)

7) Backup Master server database

# mysqldump –all-databases –user=root –password –master-data > masterdatabase.sql

8) After taking the backup Again login to MySQL as root user and unlock the tables

Query OK, 0 rows affected (0.01 sec)
mysql> quit

9) Copy the masterdatabase.sql file to your Slave server using SCP
scp masterdatabase.sql root@

Configure MySQL Slave

1) Need to edit “/etc/my.cnf”
server-id = 2
relay-log = /var/lib/mysql/mysql-relay-bin
relay-log-index = /var/lib/mysql/mysql-relay-bin.index
log-error = /var/lib/mysql/mysql.err
master-info-file = /var/lib/mysql/
relay-log-info-file = /var/lib/mysql/
log-bin = mysql-bin
innodb_buffer_pool_size = 256M
innodb_log_file_size = 512M

2) Import the master database:

mysql -u root -p < /root/masterdatabase.sql

3) # service mysqld restart

4) Log in to the MySQL & run the below commands

mysql> SLAVE STOP;
Query OK, 0 rows affected (0.01 sec)
Query OK, 0 rows affected (0.03 sec)

Query OK, 0 rows affected (0.01 sec)

*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_User: centos
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000001
Read_Master_Log_Pos: 20249
Relay_Log_File: mysql-relay-bin.000002
Relay_Log_Pos: 4941
Relay_Master_Log_File: mysql-bin.000001
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Last_Errno: 0
Skip_Counter: 0
Exec_Master_Log_Pos: 20249
Relay_Log_Space: 5096
Until_Condition: None
Until_Log_Pos: 0
Master_SSL_Allowed: No
Seconds_Behind_Master: 0
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_SQL_Errno: 0
1 row in set (0.00 sec)

If your application & DB server are the same then installed the application on slave server before adding in to it Mysql Slave.

& rsync your application folders with slave server in scenario you will get Mysql replication as well as application  server

[root@OtrsMaster ~]# crontab -l
*/10 * * * * /usr/bin/rsync -avr –progress –delete //var/article/* root@ 

Fail-over Master to slave

1)flush log if server was master after booting you have to run below command
mysql> flush logs;
Query OK, 0 rows affected (0.01 sec)

mysql> SLAVE STOP;
Query OK, 0 rows affected (0.01 sec)
Query OK, 0 rows affected (0.01 sec)

Query OK, 0 rows affected (0.01 sec)
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
| mysql-bin.000001 | 20425 | | |
1 row in set (0.00 sec)

After doing all these settings restart the applications services

[root@OtrsMaster ~]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]

To make failed server (after rebuilding) again MySQL slave please follow “Configure MySQL Slave” section.



Configure Office Web App 2013 Farm with SharePoint 2013 Farm


Hi Friends,


Today we will discuss on how to configure Multi Server Office Web Apps farm with a SharePoint farm. Also the specialty of this OWA configuration is that it can work inside and outside of firewall. Normally OWA farms are setup HTTP inside the firewall network(Internal network) and HTTPS outside the network(External world) but using this configuration we will configure HTTPS for both inside and outside network. This will not only decrease additional overhead and configuration but also is recommended by Microsoft to use HTTPS for production environment.


We need to meet below pre-requisites before we proceed further:
1. SharePoint farm configured and ready to use
2. Two or more Office Web Apps servers with setup files
3. One certificate for Office Web App
4. If you are using Windows server 2012 R2 then you would need to install latest update for Office Web Apps
5. FQDN name for your Office web app farm e.g.( and its DNS entry with Round Robin(You can also configure Windows NLB or a Load Balancer entry for same)

Installation of Office Web App is very simple, You just need to download the installable and execute it on all OWA servers.

Install Office Web apps on all Office Web Apps servers. If you are using Office Web App on Windows Server 2012 R2, you should install latest update for Office Web Apps. You would need an Office Web app certificate imported to IIS
Now Let’s configure Office Web App, Open Windows PowerShell and execute below command

Once the Office Web App farm is configured, open IIS and make sure SSL binding for site HTTP80 has proper certificate attached.

From IIS binding select the certificate and export the .cer file.
You need to import it to central admin manage trust.

To Attach this Office web app farm to SharePoint farm, you need to create a WOPI connection. Open SharePoint PowerShell on SharePoint server and execute below command:

New-SPWOPIBinding -ServerName “”

Set Wopi zone

Now if you want to add other Office Web App Server to OWA farm, you need to execute below command on existing OWA server
new-officewebappsmachine -machinetojoin “”

Hope this will help you

Configure Workflow Manager 1.0 with SharePoint Server 2013

Hi Friends,

Today we will discuss on how to configure Multi Server Workflow farm with SharePoint farm. Just of your information, you need to access Workflow farm only from WFE and Application servers. This means just like your database server, even workflow servers are not exposed to end users.

We need to meet below pre-requisites before we proceed further:
A. SharePoint farm configured and ready to use
B. Two or more Workflow servers with setup files
C. If you are using Windows server 2012 R2 then you would need update KB2799752(Service bus hotfix) and KB2799754(Workflow manager hotfix)
D. FQDN name for your workflow farm e.g.( and its DNS entry with Round Robin(You can also configure Windows NLB or a Load Balancer entry for same)

  1. Let’s get started with installation of Workflow Manager 1.0 on Workflow servers. We need installable as shown below

  2. When you will try to install the workflow.exe file you will be asked to download and install WebPlatformInstaller.exe. Now all the updates and most components are installed through WebPlatforminstaller.





  1. Once the WebPlatforminstaller is installed, you need to search for Workflow manager and Workflow manager client and install the same.








  1. Once Workflow Manager and client is installed, I would suggest you to install the updates as well.








  1. Now let’s configure Workflow Server farm. This is very important so please follow steps carefully.
  2. Lets execute the Workflow Manager Configuration Wizard
  3. Select “Configure Workflow Manager with Custom Settings”

  4. Now provide the SQL server instance name, Authentication, Certificate and SQL Workflow database names

  5. You need to provide the Workflow service account credentials which will be used to connect to SQL server and for workflow IIS Application pool.

  6. You would need to provide a Certificate Generation Key. It is just like Passphrase for your SharePoint farm

  7. Make sure you select “Allow workflow management over http on this computer”

  8. Along with Workflow Management, you need to configure Service Bus required by Workflow manager

  9. Make sure you select “use the same certificate generation key as provided for workflow manager”


  1. Once the Workflow Farm is created, you need to join other Workflow server to the farm. To do so execute the same Workflow configuration wizard and select “Join an Existing Workflow Manager Farm”

  2. Provide the existing Workflow Farm SQL server instance name, Workflow database name and Service Bus farm database name

  3. Provide the workflow service account and Certificate generation key used while creating workflow farm.

  4. Select “use the same service account credentials as provided for Workflow Manager”, then select next

  5. Once farm other server is joined to workflow farm you will see below

  6. Once workflow is configured, you need to attach Workflow Farm to SharePoint farm. Make sure you have DNS entry( for your Workflow farm. If not DNS, you should at least have Host entry for same. Try to browse on WFE and Application server, you might see Authentication error.

  7. Add the URL to Local Intranet and set the Local Intranet zone to “Automatically login with current username and password”


  1. Now you should be able to browse the workflow farm details, this shows you can connect to workflow farm and it is working fine.

  2. Now execute below command in SharePoint Powershell
    Register-SPWorkflowService -SPSite “http://sharepointsite” -workflowHostUri “” -AllowOauthHttp -ScopeName SharePoint –force

  3. Now you need to activate the workflow feature on site
    Enable-SPFeature -Identity WorkflowServiceStore –Url http://sharepointsite

  4. In Central Admin > Manage Service Application > Workflow Service Application Proxy

  5. Open site in SharePoint designer – Select workflow from left pane – select new workflow
    A. Workflow farm can co-locate on SharePoint servers
    B. As per Microsoft articles, for high availability you need to have at least 3 Workflow Server in farm. You cannot have 2 workflow servers in a farm. It has to be 1 or 3.

About Stellar Outlook Toolkit


Hi All,

I am using Microsoft Outlook from last couple of years. When working with Outlook, I face number of issues which eats host of my productive time. At times I hare Outlook but I have to reply upon Outlook for my email communication.
Most of the issues are usually caused by Outlook file (PST) that contains all the information is highly sensitive and required a proper management. However, at times, even after so many precautions PST become inaccessible that results data loss.

After searching a lot I tool on Internet but they had some of other issue. Finally I found a tool named Stellar Outlook Toolkit. This tool was a boon to all most of my  Outlook issues. This is one Toolkit\Utility which I would recommend not just to individual but also organization for their Outlook management.

There are plenty of methods available that let you to keep the integrity of your PST file intact and also help to manage the stored data. Now, the question arises is which one brings the most reliable and safe solutions to provide Outlook file management task. This review is about a reliable Outlook Email Toolkit that includes all utilities to optimize and manage an MS Outlook Profile.

‘Stellar Outlook Toolkit’ has six utilities which are designed to manage and optimize the regular functions of an Outlook profile, such as repair, backup, split or compact a large PST file, etc. These tools is basically for individual, small or big enterprises that have hundreds of Outlook profiles to manage and need to perform multiple tasks to optimize and manage those profiles.

Highlights of utility in Stellar Outlook Toolkit :
Outlook PST Repair
Stellar Outlook Toolkit has a specialized feature that helps users to restore data from an inaccessible Outlook PST file. This module repairs all corrupt PSTs along with all the mailboxes and the mail items while keeping their original state intact.
Outlook Mail Backup
In order to keep Outlook data safe from further corruption this utility lets you to take  backup of all the Outlook mail items, such as messages, attachments, calendar, journals, contacts, tasks and notes. You are also allowed to take incremental and differential backup as well.
Split PST
Split PST can divide a large sized PST into multiple smaller parts to reduce PST size. You can import these parts into Outlook profile and use normally. Additionally, you can split a large PST file according to Date, Size, Mail Id and mail Folder.
Compact PST
Compaction is another way to reduce the size of a growing PST file. This tool has a compact module that lets you to compress a large PST file so that the consequences of an over-sized PST can be avoided. With this module you can compact both the PST and OST files that automatically reduces the chances of unexpected crash.

Outlook duplicate remover
This utility filters and removes duplicates and junk mails from a MS Outlook profile so that a little part from the overall size of Outlook mail account can be emptied.

Outlook Password Recovery
This tool also lets you to recover lost passwords of your Outlook account. The software provides you six set of passwords that can be used to unlock the Outlook account.

This unique suite of applications avail you all modules required to manage an Outlook profile. This single toolkit can handle all the Outlook management related tasks. Although, it is quite time consuming but the result will be satisfactory. Its easy interface lets you to perform all the tasks efficiently without any hassle.

Overall Stellar Outlook Toolkit is a perfect solution in order to manage and optimize multiple Outlook profiles without hassle. It is a single solution for those professionals who regularly manage multiple Outlook profiles and are responsible for all the information stored in these profiles.

Link to check more about this toolkit:

SharePoint 2016 Farm configuration issue on Windows Azure Virtual Machine

Hi All,
I hope you all know that now we can create a SharePoint 2016 VM on Windows Azure. In case you have not tried it yet, you can follow below:

Select New on Windows Azure > Compute > Virtual Machine > From Gallery > Select SharePoint from left hand navigation > Select SharePoint Server 2016 IT preview
While I was working with this VM, I came across an issue where I was unable to configure a SharePoint 2016 farm using the SharePoint 2016 VM created in Windows Azure using one of their template. I found that root of issue was Active Directory. SharePoint cannot work without active directory and not everyone using Azure creates a VM with AD in Windows Azure itself. If you plan to create an AD forest in Azure and then add SharePoint 2016 VM to that domain, please follow my article:

Creating a Lab on Windows Azure


If you are planning to use this VM only for learning purpose then you may want to create a SharePoint farm without Active Directory. Unlike previous versions of SharePoint, you cannot use Single Server install model to create a SharePoint farm without Active Directory or without installing SQL server.




To overcome this issue you need 1st install SQL Server and then use below PowerShell command to configure your SharePoint farm. You can download SQL server from below link 


Once SQL server is installed and your local admin account has access to SQL server, you can use SharePoint PowerShell to create tour SharePoint 2016 Farm.
1. Open SharePoint PowerShell as Admin
2. You may want to type below command and provide actual values. When you execute the command, you will be requested for credentials of your local admin account you used while creating this Virtual Machine.
New-SPConfigurationDatabase -DatabaseName “SP2016_config” -DatabaseServer “Name of SQL Server” -Passphrase (ConvertTo-SecureString “Sharepoint@2016” -AsPlainText -force) -LocalServerRole SingleServerFarm -FarmCredentials (Get-Credential)


Note: I have observed that when people try to copy paste such commands, hyphen(-) sign does not work, so remove and add these sign again in whole command.

Once above command is executed successfully without any issue, you can execute SharePoint PSconfig wizard and complete SharePoint farm configuration.

Hope this will help you.


SharePoint site down “An application error occurred on the server” web.config error

Hi All,


Recently I got below error message which you might have seen. This is a very common and generic error message which can confuse you a lot. You may face this issue in all versions of SharePoint like SharePoint 2007, 2010, 2013 or SharePoint 2016. First let us look at the error message
#################### Error Start #############
Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be view able on remote machines, please create a <customErrors> tag within a “web.config” configuration file located in the root directory of the current web application. This <customErrors> tag should then have its “mode” attribute set to “Off”.

<!– Web.Config Configuration File –>

<customErrors mode=”Off”/>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the “defaultRedirect” attribute of the application’s <customErrors> configuration tag to point to a custom error page URL.

<!– Web.Config Configuration File –>

<customErrors mode=”RemoteOnly” defaultRedirect=”mycustompage.htm”/>

#################### Error End #############

We can see that error message says something about web.config file. Here is what we need to do.
1. Open IIS management console
2. Start > RUN > Inetmgr > Expand server
3. Expand the site you are getting this error on > right click > explore

Here you should be able to see a web.config file. If this web.config was recently modified by someone, please check with your team if anyone has recently modified this file, tried to deployed a farm\web application solution or run psconfig wizard on any of the SharePoint server in farm.
Note: If you have multiple SharePoint server, try the same on all the servers

In most cases, it is a web.config change done by someone from within the team which cause this issue.
If no one has done any changes:
1. Make a copy of this web.config file and open the original file. Search for “callstack” and set the value to True, again search for customerrors set it to OFF.
2. Rename the recent web.config to web.config.old with today’s date and revert the most recent web.config(date and time) file to web.config
3. Install Examdiff tool on a computer and copy the most recent web.config file and new web.config to identify the changes.

These steps will help you identify the actual cause of this error.


What Is Windows Communication Foundation(WCF)

Windows Communication Foundation (WCF) is a .NET framework for developing, configuring and deploying services. It is introduce with .NET Framework 3.0.It is service oriented technology used for exchanging information. WCF has combined feature of .NET Remoting, Web Services and few other communications related technology.

Key Feature of WCF:

  1. Interoperable with other Services
  2. Provide better reliability and security compared to ASMX web services.
  3. No need to make much change in code for implementing the security model and changing the binding. Small changes in the configuration will make your requirements.

Difference between WCF and Web service

Web Service WCF
It can be hosted in IIS It can be hosted in IIS, windows activation service, Self-hosting, Windows service.
[WebService] attribute has to be added to the class and [WebMethod] attribute represents the method exposed to client



public class myService: System.Web.Services.Webservice


public string Test()
return “Hello! Web Services”;







[ServiceContract] attribute has to be added to the class and [OperationContract] attribute represents the method exposed to client



public Interface InterfaceTest


string Test();

public class myService:InterfaceTest


public string Test()

return “Hello! WCF”;



Can be access through HTTP Can be access through HTTP, TCP, Named pipes.
One-way, Request- Response are the different operations supported in web service. One-Way, Request-Response, Duplex are different type of operations supported in WCF.
System.Xml.Serialization name space is used for serialization. System.Runtime.Serialization namespace is used for serialization.
Can not be multi-threaded. Can not be multi-threaded.
For binding it uses SOAP or XML Support different type of bindings (BasicHttpBinding, WSHttpBinding, WSDualHttpBinding etc )

WCF Services has three important companent.

  1. Service Class – A WCF service class implements some service as a set of methods.
  2. Host Environment- It can be a application or a Service or a Windows Forms application or IIS as in case of the normal asmx web service in .NET.
  3. EndpointsAll the WCF communications are take place through end point.

Endpoints consist of three component Address, Binding and contract. They collectively called as ABC’s of endpoints.

Address: It is basically url address where WCF services is hosted.

Binding: Binding will describes how client will communicate with service.

Binding supported  by WCF




Basic Web service communication. No security by default


Web services with WS-* support. Supports transactions


Web services with duplex contract and transaction support


Web services with federated security. Supports transactions


Communication directly with MSMQ applications. Supports transactions


Communication between WCF applications by using queuing. Supports transactions


Communication between WCF applications on same computer. Supports duplex contracts and transactions


Communication between computers across peer-to-peer services. Supports duplex contracts


Communication between WCF applications across computers. Supports duplex contracts and transactions


Basic Web service communication. No security by default


Web services with WS-* support. Supports transactions

Contract: The endpoints specify a Contract that defines which methods of the Service class will be accessible via the endpoint; each endpoint may expose a different set of methods. It is standard way of describing what the service does.

Mainly there are four types of contracts available in WCF.

  1. Service Contract: describe the operation that service can provide.
  2. Data Contract: describes the custom data type which is exposed to the client.
  3. Message Contract: WCF uses SOAP message for communication. Message Contract is used to control the structure of a message body and serialization process. It is also used to send / access information in SOAP headers. By default WCF takes care of creating SOAP messages according to service DataContracts and OperationContracts.
  4. Fault Contract: Fault Contract provides documented view for error occurred in the service to client. This help as to easy identity the what error has occurred, and where. By default when we throw any exception from service, it will not reach the client side.

Creating WCF service in visual studio 2013:


  • First open Visual Studio 2013. Create a new project and select WCF Service Application and give it the name WcfService1.

wcf service

  • Delete default created  IService1.cs and Service1.svc file.
  • Right-click on the project and select  “Add” | “New Item…”
  • From the Web tab choose WCF Service to add.
  • give the service the name “HELLO.svc”

wcf service2


  • Open IHELLO.cs and remove the “void DoWork()”.



using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace WcfService1
// NOTE: You can use the “Rename” command on the “Refactor” menu to change the interface name “IHELLO” in both code and config file together.
public interface IHELLO
string sayHello();


  • Configure Endpoints with Metadata

To do this open the Web.config file. We are going to create one Endpoint with basicHttpBinding. We are adding a Endpoint also to configure the metadata of the service.

<service behaviorConfiguration=”WcfService1.HELLOBehavior” name=”WcfService1.HELLO”>
<endpoint address=”” binding=”basicHttpBinding” contract=”WcfService1.IHELLO”/>
<endpoint address=”mex” binding=”mexHttpBinding” contract=”IMetadataExchange” />


  • Implement Service. HELLO.svc.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace WcfService1

public class HELLO : IHELLO
public string sayHello()
return “Hello! welcome to WCF”;

Now we have created the Service and configured the Endpoint.To host it press F5 in Visual Studio.
In the browser you will see the Service as in the following. wcf service3To view the metadata of the Service click on the WSDL URL. wcf service4


In Windows / Web application we can consume this WCF service by using “Add Service Reference”->Add Service Address “http://localhost:57091/HELLO.svc” -> Click on Go.

I had created console application and added service reference.


using System;

namespace ConsoleApplication1
class Program
static void Main(string[] args)
HelloServiceReference.HELLOClient oHell = new HelloServiceReference.HELLOClient();
string str= oHell.sayHello();

wcf service5

  • Press F5 to run the Console Application and we got below output.wcf service6


Related helpful links

I hope this will help you.Your valuable feedback and comments are important for me.