Cannot deregister application because of invalid cookie

Error constant SQLE_DEREG_APP_NOT_FOUND
ODBC 2 State 42000
ODBC 3 State 42S02
Severity 16
SQLCODE –785
SQLSTATE 5RW24
Sybase error code 13795
Probable cause

The application has not been registered successfully or it was previously deregistered.