While Launching HDX Applications from Secure Hub WorkStore Getting an Error: "Unsupported file type......."
book
Article ID: CTX227991
calendar_today
Updated On:
Description
The hdx applications are enumerated in the secure hub store but while launching the application we get error : "Unsupported file type : the provided ica file is malformed or otherwise invalid. Please ensure that the product you are using for launching is correct. Contact you administrator for assistance. "
Below is the snapshot for the error message.

Note: The application is launching successfully in receiver .
Environment
This software application is provided to you as is with no representations, warranties or conditions of any kind. You may use and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that: (a) the software application may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the software application fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the software application. In no event should the software application be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SOFTWARE APPLICATION, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the software application.
Resolution
- Verify the configuration from this article: https://support.citrix.com/article/CTX207187
- Verify the test connectivity from the XenMobile Console under Settings -> XenApp/XenDesktop.
- Ensure that the STA on Netscaler Gateway for the storefront is up and green.
- Ensure that under Configure remote access settings - The default appliance is the Netscaler Gateway.
- StoreFront server must be set as an advanced policy to route all HDX traffic through the NetScaler Gateway on-premise.
To do this, your StoreFront server, you can run powershell command for older version of storefront
Open PowerShell with administrative privileges and run the following commands.
-
Set-ExecutionPolicy Unrestricted( Type yes when prompted)
-
cd "C:\Program Files\Citrix\Receiver Storefront\Scripts"
-
\ImportModules.ps1
-
Set-DSOptimalGatewayForFarms -SiteId 1 -ResourcesVirtualPath <ResourcesPath> -GatewayName <GatewayName> -Hostnames @("<GatewayFQDNs>") -StaUrls @("StaUrls") -Farms @("ControllerNames") -EnableSessionReliability $true -EnabledOnDirectAccess $true
Here’s an explanation for the parameters in the command above:
-
Resource Path = /Citrix/<Name of the newly created Store e.g. Store2>
-
GatewayName = Specify gateway name. It can be any value e.g.,. “OptimalNSG”
-
Gateway FQDNs= FQDN of the existing NetScaler Gateway virtual server in your datacenter that is being used for accessing XenApp/XenDesktop.
-
STAURL= Comma delimited list of URLs of the existing STA used with XenApp/XenDesktop (typically the XenDesktop Delivery Controller or the XenApp server) “https://StaFQDN/scripts/ctxsta.dll”
-
ControllerNames=Comma delimited list of the display names of the delivery controllers used with this store. See screenshot.
-
To get the list of controller names, open the Citrix StoreFront admin console.
-
Click Stores, select the store (i.e. Store2) and click Manage Delivery Controllers from the Actions menu in the RHS.
-
Get the name of the delivery controllers from the Name column.
-staUrls (String Array) Specifies the URLs for XenDesktop, XenApp, and VDI-in-a-Box servers running the Secure Ticket Authority (STA). If using multiple farms, list the STA servers on each using a comma separated list:
Example: StaUrls @("http://addc02.test.no/scripts/ctxsta.dll","http:/addc01.test.no/scripts/ctxsta.dll")
For the new versions of StoreFront we can skip running the powershell command and this can be done using the GUI .
On Storefront configure store settings-> optimal HDx routing , select gateway and add controllers .
Here the gateway is the netscaler gateway which in case would be NS_CitrixCloud and select controllers .
Here is a screenshot in this example we have only one controller you can choose both of your controller and click on OK.

Problem Cause
- The Default appliance was not the Netscaler gateway.
- If using multiple farms, list the STA servers on each using a comma separated list:Also the STA servers were not added in proper syntax
Example: "http://xenapp-a.ptd.com/scripts/ctxsta.dll","http://xendesktop-a.ptd.com/scripts/ctxsta.dll" .
Issue/Introduction
This article summarizes the steps to follow if we get an error While launching HDX applications from WorxStore: "Unsupported file type : the provided ICA file is malformed or otherwise invalid. Please ensure that the product you are using for launching is correct. Contact you administrator for assistance."
Additional Information
Verify the configuration from this article: https://support.citrix.com/article/CTX207187
https://docs.citrix.com/en-us/storefront/2-6/dws-manage/dws-configure-ha/dws-configure-ha-optimal.html
Was this article helpful?
thumb_up
Yes
thumb_down
No