Error Code: Internal Server Error. The token supplied to the function is invalid (). on the external URL. The internal URL works. I get the error "the token supplied to the function is invalid" when trying to make an RDP connection from a Windows 7 Professional SP 1 client. I had faced the same issue with SQL Server. I followed some steps and my problem was resolved. Those steps are as -. Click Start, click Run.