The specified variable was not declared. Check the spelling of the undeclared variable to ensure that it is not causing the error.