The Address property on ChannelFactory.EndPoint was null. Endpoint must have a valid address
===

I have a WCF service with the following configuration: 

     <service behaviorConfiguration="LoginService.LoginBehavior" name="AuthenticationServices.Login">
           
            <endpoint address="" behaviorConfiguration="web" binding="webHttpBinding"
              bindingConfiguration="WebHttpEndpointBinding"
                      contract="AuthenticationServices.ILoginService">
              <identity>

To test the service I created a console application which consumes it.

     static void Main(string[] args)
            {
                LoginService.LoginServiceClient client = new WCFDriver.LoginService.LoginServiceClient();
                 client.ValidateUserID();
            }

Now when I call the service from console app it throws the following error: 

    Unhandled Exception: System.InvalidOperationException: The Address property on C
    hannelFactory.Endpoint was null.  The ChannelFactory's Endpoint must have a vali
    d Address specified.
       at System.ServiceModel.ChannelFactory.CreateEndpointAddress(ServiceEndpoint e
    ndpoint)
       at System.ServiceModel.ChannelFactory`1.CreateChannel()

           
