The parameter EndpointAddress()is called URI(you can place the cursor immediately after (and click Ctrl + Shift + Spaceto view the list of parameters).
You can verify that this is a problem by replacing:
new EndpointAddress(
System.Configuration.ConfigurationManager.AppSettings["URL"]));
.. Something like the following:
new EndpointAddress("http://your.service.uri/");
If this works, you know that your error is configuration related.
source
share