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?
Girish SapariyaPosted Nov 20, 2013, 2:38 AM
Jaganathan BantheswaranPosted Nov 20, 2013, 2:35 AM
Girish SapariyaPosted Nov 20, 2013, 2:32 AM
Jaganathan BantheswaranPosted Nov 20, 2013, 2:16 AM
Sometimes using statement should be inner or outer of the namespace.
Girish SapariyaPosted Nov 20, 2013, 1:58 AM
"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.
Rohatash KumarPosted Nov 19, 2013, 3:33 AM
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/