Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat's the difference between "Add reference" and "Add service reference"?
    primarykey
    data
    text
    <p>I have a <code>C#/WCF</code> service. I'm <a href="https://stackoverflow.com/questions/15270680/add-service-reference-when-using-nettcp-binding">having</a> <a href="https://stackoverflow.com/questions/15338163/service-has-zero-application-non-infrastructure-endpoints">problems</a> adding a service reference to it, so one of my colleagues suggested that I simply add a reference to it using a library. </p> <p>The second answer <a href="http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/758f5253-8262-4e29-b57f-c56a7b3023df" rel="nofollow noreferrer">here</a> suggests that by doing so I lose the service re usability.<br> Is that correct? Are there any other differences between those options? </p> <p><strong>Edit</strong><br> I have no experience with WCF. I was working according to <a href="http://wcftutorial.net/" rel="nofollow noreferrer">this</a> tutorial, please provide some explanations (or links to them) in your answers as well. </p> <p><strong>Edit 2</strong><br> I want a Windows-hosted WCF service that will run on every machine that runs my main application. My application (and another one) will use this service locally only.<br> Can I still achieve that with "Add reference"? </p> <p><strong>Edit 3</strong><br> I need a service because I have two different application that are doing the same thing and they need HW resources for that. Currently, one of them is using the other's dll, so the code is not copied and pasted (at least), but there's no way to prevent a concurrent access to those resources. Windows service can solve this problem.<br> The binding is not too important. I'll read further about named pipes. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload