Trying to run the Xenapp server agent - not using a staging database so running the app with the
switches and am getting an error message
system.indexoutofrangeexception: Index was outside the bounds of the array
Any ideas out there please?
Nov 24, 2022 05:50 AM
Is there any further context that appears before or after this error message?
(Ensure the "-v" command line option is used to produce verbose output, in case that gives any further details beyond what you are already seeing.)
Nov 24, 2022 10:19 PM
That error smells like it might occur if bad command line options are provided. What is the full command line you are using?
Nov 25, 2022 03:38 AM
url = FQDN of the beacon
user = service account in use on the beacon
pass = service account password
Nov 25, 2022 03:47 AM
As is shown in the guide
-url http://beacon01.example.com -user beaconAccountName -pass password
Nov 25, 2022 03:52 AM
So I assume the screenshot shared earlier was generated when using the "-v" command line option, but that option isn't shown in the command line above.
I should have been clearer that the "-v" option needs a number (specifying a verbosity level) after it - and if a number was not specified, that would explain the error you saw in that case. But it wouldn't explain the error seen when the "-v" option is not used.
Can you share a screenshot showing the exact full command used (including details such as exactly where spaces are and are not specified) and the full output it generates (obviously with sensitive details obscured)?
NB. An "IndexOutOfRangeException" from the CommandLineProcessor.Initialize function like shown in the screenshot indicates that a command line option where it expects to find a value following the option didn't have a value specified.
Nov 25, 2022 04:09 AM
Thanks - what is the best -v number (and required format) to use to get the most accurate result please?
Nov 25, 2022 04:16 AM - edited Nov 25, 2022 04:17 AM
Use "0" to include the most verbose details that are available:
FnmpXenAppAgent.exe -v 0 -url http://beacon01.example.com -user beaconAccountName -pass password
Nov 25, 2022 04:21 AM
Nov 25, 2022 06:59 AM
Nov 25, 2022 04:41 AM
So I'm confused at what you're seeing. 🙂 There is no error shown in this screenshot. Has the problem stopped happening? Or if it is still occurring, where are you seeing the error?
Nov 25, 2022 05:02 AM
Nov 25, 2022 06:36 AM
So the command line with "-v" at the end is failing due to no number following the option.
The other command lines are not obviously showing any failure. So I'm guess I'm not sure what problem you are seeking input from the Community on here. Is there still an issue that is concerning you?
Nov 25, 2022 07:16 AM
So if there is no error shown that means the agent has run ok?
Have you seen the other reply above using the format you suggested? That doesn't report any error.
Nov 25, 2022 07:20 AM
From what you're reporting now, the system.indexoutofrangeexception that is the focus of your question in this thread seems to be no longer be occurring.
I don't know exactly what output to expect from this agent. But unless an error is reported, I would assume that the agent is running OK until/unless you observe some kind of anomaly.
The following page contains some suggestions for validation of what the agent is doing: Validation and Problem Solving.
Nov 25, 2022 07:33 AM
Is there anything else I need to do to set this up on the XenApp server?
Nov 25, 2022 06:37 AM