The parameter to EndpointAddress()
is named URI
(You can place your cursor just after the (
, and press Ctrl + Shift + Space
to see the parameter list).
You could verify that this is the problem by replacing:
new EndpointAddress(
System.Configuration.ConfigurationManager.AppSettings["URL"]));
..With something like the following:
new EndpointAddress("http://your.service.uri/");
If that works, you know your error is config-related.