Terminal Services connection authorization policy (TS CAP) is preventing connection to the remote computer through TS Gateway, ...

Terminal Services connection authorization policy (TS CAP) is preventing connection to the remote computer through TS Gateway, possibly due to one of the following reasons:  *    You do not have permission to connect to the TS Gateway server. *    You used password authentication but the TS Gateway server is expecting smart card authentication (or vice versa).  Contact your administrator for further assistance.