The Community is now in read-only mode to prepare for the launch of the new Flexera Community. During this time, you will be unable to register, log in, or access customer resources. Click here for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Summary

This article will describe a current Citrix XenApp Agent Adapter connection defect. The connection may fail with the error message "System.ArgumentOutOfRangeException: Index and count must refer to a location within the string."

Symptoms

This article will describe a current Citrix XenApp Agent Adapter connection defect. The connection may fail with the error message "System.ArgumentOutOfRangeException: Index and count must refer to a location within the string."

The affected version of adapter is 2016 R1 SP1 and prior version.

The error message is shown below:

016-12-23 3:15:45.088 : Informational : Worker group online server found: AAA
2016-12-23 3:15:45.150 : Error : An unhandled error occured while attempting to process the application 'Certain Application'.
2016-12-23 3:15:46.710 : Error : System.ArgumentOutOfRangeException: Index and count must refer to a location within the string.
Parameter name: count
at System.String.RemoveInternal(Int32 startIndex, Int32 count)
at System.String.Remove(Int32 startIndex, Int32 count)
at Flexera.Compliance.Importer.XenAppAgent.XaServer.GetDomainName()
at Flexera.Compliance.Importer.XenAppAgent.DataProviders.XaDataProviderBase.GetAclApplicationServers(String p_AppBrowserName)
at Flexera.Compliance.Importer.XenAppAgent.DataProviders.XaDataProviderBase.GetAclApplications()
2016-12-23 3:15:46.710 : Error : Index and count must refer to a location within the string.
Parameter name: count
at System.String.RemoveInternal(Int32 startIndex, Int32 count)
at System.String.Remove(Int32 startIndex, Int32 count)
at Flexera.Compliance.Importer.XenAppAgent.XaServer.GetDomainName()
at Flexera.Compliance.Importer.XenAppAgent.DataProviders.XaDataProviderBase.GetAclApplicationServers(String p_AppBrowserName)
at Flexera.Compliance.Importer.XenAppAgent.DataProviders.XaDataProviderBase.GetAclApplications()
at Flexera.Compliance.Importer.XenAppAgent.AclImporter.Import(String p_DatabaseConnectionString, Int32 p_DatabaseTimeout, String p_OutputFile)
at Flexera.Compliance.Importer.XenAppAgent.Program.Main(String[] args)

Cause

The current Citrix XenApp Agent adapter retrieves Citrix server by expecting a fully qualified domain name eg: AAA.flexerasoftware.com
If the server name return as short name as: AAA , the process will hit this defect and cause while connection failed.

Resolution

Current it's marked as a defect under bug FNMS-40743

Workaround

Suggest User's Citrix Administratorto change the short server name into a fully qualified domain server name.
No ratings
Version history
Last update:
‎Jan 28, 2019 07:34 PM
Updated by: