I will come directly with my question.
I want to call WCF service to get data, so , Can I call a WCF service in Window Service?
I had tried to add a WCF project to my Windows Service Project, but it gives error when i build the project "Error:The type name 'ServiceReference1' does not exist in the type 'TestApplication.TestApplication'. What i am doing wrong?

Rohatash KumarRank #12 · 57.7K reputationPosted Nov 18, 2013, 10:33 PM EST
To solve this problem go to the Solution Explorer and click on the add the service reference.
The following window will be opened:
Now paste the above URL in the address and click on the "Go" button:
Girish,
Click on the Ok Button. Now the reference has been added in the Solution Explorer.
To know more:
http://www.c-sharpcorner.com/uploadfile/rohatash/insert-and-display-data-in-datagridview-in-windows-forms-app/
Girish Sapariya159 reputationPosted Nov 19, 2013, 8:58 PM EST
"Error:The type name 'ServiceReference1' does not exist in the type 'TestApplication.TestApplication'.
May be i had not configure the properties of the project properly.
Later i took a fresh project and did the same thing again, this time i didnt got any error. Don't know where i was wrong in my earlier project.
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Nov 19, 2013, 9:16 PM EST
Sometimes using statement should be inner or outer of the namespace.
Girish Sapariya159 reputationPosted Nov 19, 2013, 9:32 PM EST
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Nov 19, 2013, 9:35 PM EST
Girish Sapariya159 reputationPosted Nov 19, 2013, 9:38 PM EST