Error when deploying robot

When I deploy my code to the robot, an error occurs stating this:

ERROR -44007 FRC: The RefNum you are trying to Get does not exist in this RefNum Registry.

You are asking your program to use a refnum you did not declare in begin. Capitalization and spelling are important.

I recommend you check the following document: FRC Driver Station Shows Error -44007