I'm following this guide as well as the sample.cs file and getting an error message on this line

cache_connection.Connect();

The error is:

Caught GlobalsException: lc_conn::connect_device returned Db_err: source: lc_conn::connect() message: lc_conn::connect: CacheSecureStart returned -15: <ACCESSDENIED>

0 0
0 10

I'm trying to print from Cache and I have setup the device, but keep getting a message that someone else is using it. this is RHEL 7.9. I have cups running and I can print from the command line. I have also issued this command: lpadmin -p KM501L -u allow:all

what am I missing

thanks

Paul

0 1
0 18