Citrix Receiver and StoreFront error messages are sometimes confusing or lacking details so I decided to make little blog notes about common issues when I see them. So without further ado here’s #1:

In Citrix Receiver I tried to logon remotely via NetScaler Gateway and got the following error message: “Cannot get your apps from the store

Cannot get your apps from the store

Citrix Receiver

When using a browser to connect the error message was different:

The connection to "XenApp - Server 2016 Desktop" failed with status (Unknown client error 1110)

Desktop Viewer

Using HTML5 (“Light Version”) it simply said: “Citrix receiver cannot connect to the server“:

Citrix Receiver cannot connect to the server

Error

Connecting to StoreFront directly from the internal network gave yet another error, either “Cannot complete your request” or just a wait cursor

Cannot complete your request

Cannot complete your request

In the Citrix Delivery Services EventLog I could see Event ID 9 Citrix Credential Wallet Service:

An unexpected error occurred retrieving the credentials. System.Collections.Generic.KeyNotFoundException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 The given key was not present in the dictionary. at System.Collections.Concurrent.ConcurrentDictionary`2.get_Item(TKey key) at Citrix.DeliveryServices.CredentialWallet.InMemory.InMemoryWallet.get_Item(Index index) at Citrix.DeliveryServices.CredentialWallet.Service.CredentialWalletService.Retrieve(Byte[] index)

Event 9, Citrix Credential Wallet Service

The cause? NetScaler is used to load balance the StoreFront servers and was set to Persistency SSLSESSION instead of SOURCEIP.

To change this go to Traffic Management -> Load Balancing -> Virtual Servers, select the entry for StoreFront and click Edit.

In the Persistence Tab change from SSLSESSION to SOURCEIP and click OK, followed by Done (and save the running config).

Change from SSLSESSION to SOURCEIP

Persistence

From the commandline: