I want to link my account to xbox live, but I get this message

I want to link my account to xbox live, but I get this message “account linking is not available in offline mode”. How could I solve it and thus be able to have it linked?