HTTP error with the Powershell SDK – Quickpost

This week we were having issues while connecting to Citrix Cloud using the Powershell SDK (more info) for Citrix Virtual Apps and Desktops services; we received the following error:

An error occurred while making the HTTP request to https://<customerID> This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server.

Powershell SDK
Powershell SDK error

After some intensive troubleshooting, we discovered that it’s a .net Framework security issue. It took us 4 hours to discover this. ūüôĀ

To solve this issue you need to modify the following registry keys:



Where you can change V4.0.30319 to a higher or lower number as it’s compatible with newer releases. That means that if you are using .net V4.8 and change the key in version 4.0 it works and you can use the Powershell SDK to manage your Citrix Cloud environment.

Hope I save you a lot of troubleshooting when you have this issue with Powershell SDK.

XenDesktop: Database could not be contacted

After installing Hotfix¬†Update 4 for XenDesktop 5.6 I noticed errors in my eventviewer that the connection to the database was lost. I¬†discovered the errors¬†because I couldn’t create Desktop Groups, I keep getting the error: “Database could not be contacted“.


¬†After some searching I found that the database needs to be updated because of a minor version. The hotfix¬†update 4 descriptions mentions the update of the datastore¬†but normally you receive an update¬†button whit in¬†the Desktop Studio, but this one I didn’t receive. Continue reading “XenDesktop: Database could not be contacted”