The primary risk factors for aspergillosis in cancer patients include prolonged neutropenia (low levels of neutrophils, a type of white blood cell), high-dose corticosteroid therapy, and hematopoietic stem cell transplantation. These conditions create an environment where the body is less capable of fighting off fungal infections.