Endpoint with Name='{0}' and ServiceContract '{1}' has relative Uri '{2}' that cannot be converted to an absolute Uri because ...

Endpoint with Name='{0}' and ServiceContract '{1}' has relative Uri '{2}' that cannot be converted to an absolute Uri because the host argument of GetAddress method is null. Please provide the service host instance that will host the endpoint, or change the relative Uri to an absolute Uri.