Friday, January 17, 2014

Event ID 1116: Printer auto-creation failure. Reason: AddPrinter() failed with status 0x5


End users were unable to see printers in Citrix sessions and I saw the above error "Event ID 1116: Printer auto-creation failure - Reason: AddPrinter() failed with status 0x5" in Eventlogs.

Solution:

This error code is returned when the driver cannot be loaded by the local print provider of the spooler. This can be caused when the caller (in this case the Citrix Print Manager Service) does not provide sufficient privileges to perform this action.

Add the Ctx_cpsvcuser or Local Service account to the local administrators group, or change the Citrix Print Manager Service to start with the Local System Account. After that restart the Citrix Print Service.

If it doesn't fix your issue, please check these articles:

http://support.citrix.com/article/CTX107838
http://support.citrix.com/article/CTX106683


 Have a nice day!

Citrix XenApp cannot contact the license server


I was getting the error "Citrix XenApp cannot contact the license server". this error was caused due to service failed on Citrix license server. The License service was up for a minute and failing iimediately.

Solution: Delete two files "concurrent_state.xml and/or the activation_state.xml" from
C:\Program Files\Citrix\Licensing\ls\conf\activation_state.xml and concurrent_state.xml on a 32-bit server

C:\Program Files(x86)\Citrix\Licensing\ls\conf\activation_state.xml and concurrent_state.xml on a 64-bit server

/opt/citrix/licensing/LS/conf/activation_state.xml and concurrent_state.xml for License Server VPX

Now restart teh Citrix license service on license server.

The Citrix link for it is:
http://support.citrix.com/article/CTX129747

Have a nice day!