Secondary Replica Set Error

Hi everyone in following the basic lecture when i try to connect to the databaase i get the following error “no secondary found in replica set or invalid replica set” any suggestions?