title: WCF installer class - Could not find default endpoint element that references contract
body: <p>i've got  installer class in client project</p>
  
  <pre><code>public override void Install(IDictionary stateSaver)
  {
      base.Install(stateSaver);
          using (ServiceReference1.ClientClient client = new ServiceReference1.ClientClient())
          {
              if (!client.Register(Context.Parameters["firstname"], Context.Parameters["lastname"], Context.Parameters["email"], Context.Parameters["password"]))
              {
                throw new InstallException("Email address is already used");
              }
          }
  }
  </code></pre>
  
  <p>Result:
  Could not find default endpoint element that references contract 'ServiceReference1.IClient' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.</p>
  
  <p>Any ideas to fix it?</p>