title: Incorrect WCF Service Reference / Empty Reference.cs file
body: <p>I have created a WCF service using Service Library template. Using the Service.dll generated, I have hosted the service in a console application.</p>
  
  <p>However, when I add a Service Reference in my web project, on viewing the Service details in Object browser, it points to incorrect assembly in the object browser as shown in the screen shot below.</p>
  
  <p><img src="https://i.stack.imgur.com/alOPC.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/Wy5Bf.png" alt="enter image description here"></p>
  
  <p>One possible issue could be that, while renaming the namespaces in my web project, I ended up renaming the namespace of Service project also. But even after fixing all the namespaces, I still have this issue.</p>
  
  <p>Any ideas on what can be done to resolve it?</p>
  
  <p>While adding a Service Reference, it displays the correct members/interfaces as shown in the screenshot below. Only when I view the Service Reference in the object browser, I don't see those interfaces exposed by the service.</p>
  
  <p><img src="https://i.stack.imgur.com/R6Sq2.png" alt="enter image description here"></p>
  
  <h2><strong>Project dependencies of service project</strong></h2>
  
  <p>Not sure why the web project is a dependency of the Service library project? It should not be as I have not added any reference to it in the Service project.</p>
  
  <p><img src="https://i.stack.imgur.com/vn4nq.png" alt="enter image description here"></p>