1

I have a WCF service which is consumed by multiple applications. I am able to consume the WCF service in a Silverlight application. But when I try to consume the WCF service in a windows service application, it does not work.

Specifically, the error I am getting in Reference.cs is:

The type name 'ServiceReference1' does not exist in the type 'xxx.xxx'.

I received this error after using the tool in Visual Studio to add a service reference to this WCF service and then attempting build the windows service project. Can anyone help?


Assumptions made by editor.

DavidRR
  • 18,291
  • 25
  • 109
  • 191
Nazia
  • 27
  • 1
  • 4
  • what is the error you get? Post the service and client configs as well – Rajesh Feb 01 '12 at 14:11
  • Make sure that your windows service can read the application configuration file. The default working directory for windows services is C:\Windows\System32, regardless where the executable is located. – Clemens Feb 01 '12 at 14:43
  • I believe that the problem described here might be addressed in [this answer](http://stackoverflow.com/a/33617608/1497596). – DavidRR Nov 09 '15 at 20:28

0 Answers0