C# WCF Error on change Endpoint
<p>I'm doing a service to comunicate only for test and learning, 
but I'm trying to change the URL Endpoint and its returning a error</p>

<pre><code>n: There was no endpoint listening at http://servername:8732/TestService/ that could accept the message. This is often caused by an incorrect address or SOAP action. 
</code></pre>

<p>That is my code:</p>

<pre><code>private void button1_Click(object sender, EventArgs e)
    {

            var myBinding = new BasicHttpBinding();
            myBinding.Security.Mode = BasicHttpSecurityMode.None;
            var myEndPointAdress = new EndpointAddress("http://servername:8732/TestService/");
            MyCalculatorServiceClient service = new MyCalculatorServiceClient(myBinding, myEndPointAdress);

            MessageBox.Show(Convert.ToString(service.soma(Convert.ToInt32(textBox1.Text), Convert.ToInt32(textBox2.Text))));

    }
</code></pre>

<p>App.config "Edited":</p>

<pre><code>           &lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;configuration&gt;
    &lt;startup&gt; 
        &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /&gt;
        &lt;/startup&gt;
        &lt;system.serviceModel&gt;
            &lt;bindings&gt;
                &lt;basicHttpBinding&gt;
                    &lt;binding name="BasicHttpBinding_IMyCalculatorService" /&gt;
                &lt;/basicHttpBinding&gt;
            &lt;/bindings&gt;
            &lt;client&gt;
              &lt;endpoint address="http://servername:8732/TestService/"
                  binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IMyCalculatorService"
                  contract="ServiceReference1.IMyCalculatorService" name="BasicHttpBinding_IMyCalculatorService"&gt;
                &lt;identity&gt;
                  &lt;dns value="localhost" /&gt;
                &lt;/identity&gt;
              &lt;/endpoint&gt;
            &lt;/client&gt;
        &lt;/system.serviceModel&gt;
    &lt;/configuration&gt;
</code></pre>