title: Referencing (Calling) Web Service within same solution
body: <p><img src="https://i.stack.imgur.com/jvpAr.jpg" alt="enter image description here">I have created two separate projects, one Web Forms, one Silverlight. 
  I have implemented a Web Service in the Web Project that I call through a ServiceReference from Silverlight to pass some values back to the Web Project. </p>
  
  <p>PROBLEM: 
  In testing it works 100% if I start my Web Project in one VS instance, and Silverlight Project i another VS instance - Silverlights calls the service and I receive the call in the Web Project,etc, etc. </p>
  
  <p>I have now included the Silverlight project in the same solution as the Web Project and now it is not working - No Error, No Reply from Service, Nothing...</p>
  
  <p>Content of my ServiceReferences.ClientConfig:</p>
  
  <pre><code>&lt;configuration&gt;
  &lt;system.serviceModel&gt;
      &lt;bindings&gt;
          &lt;basicHttpBinding&gt;
              &lt;binding name="EnrollServiceSoap" maxBufferSize="2147483647"
                  maxReceivedMessageSize="2147483647"&gt;
                  &lt;security mode="None" /&gt;
              &lt;/binding&gt;
          &lt;/basicHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
          &lt;endpoint address="http://localhost:8080/EnrollService.asmx"
              binding="basicHttpBinding" bindingConfiguration="EnrollServiceSoap"
              contract="EnrollServiceReference.EnrollServiceSoap"
              name="EnrollServiceSoap" /&gt;
      &lt;/client&gt;
  &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p></p>
  
  <p>MY SERVICE IMPLEMENTATION IN WEB PROJECT:</p>
  
  <pre><code>namespace XXX
  {
  /// &lt;summary&gt;
  /// Summary description for EnrollService
  /// &lt;/summary&gt;
  [WebService(Namespace = "http://tempuri.org/")]
  [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
  [System.ComponentModel.ToolboxItem(false)]
  // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
  // [System.Web.Script.Services.ScriptService]
  public class EnrollService : System.Web.Services.WebService
  {
  
      [WebMethod]
      public void UpdateFingerTemplates(string PersonID)
      {
          Person person = SQLData.Persons.getPersonByID(PersonID);
          Person newPerson = SQLData.Persons.getPersonByID(PersonID);
          newPerson.ID_Number = PersonID;
  
          SQLData.Persons.UpdatePerson(newPerson, person, null);
  
      }
  }
  }
  </code></pre>