# Error when attempting XUnit command

**URL:** https://www.finalbuilder.com/forums/t/error-when-attempting-xunit-command/6393
**Category:** Bugs
**Tags:** fixed
**Created:** [January 9, 2019, 11:30pm UTC](https://www.finalbuilder.com/forums/t/error-when-attempting-xunit-command/6393 "2019-01-09T23:30:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![aszuul](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/e56c9b/32.png) [@aszuul](https://www.finalbuilder.com/forums/u/aszuul)
#### Post date: [January 9, 2019, 11:30pm UTC](https://www.finalbuilder.com/forums/t/error-when-attempting-xunit-command/6393/1 "2019-01-09T23:30:08Z")

</div>

I’m getting this error when I attempt to run the XUnit command.

Error:  
Stage Controller

There was an error with stage: Unit Tests. Message: Exception: ArgumentOutOfRangeException

Message: Specified argument was out of the range of valid values.

Stack Trace: at Continua.Modules.Builds.Actions.XUnitAction.GetNuGetXUnitVersionString()  
at Continua.Modules.Builds.Actions.XUnitAction.GetFirstAdditionalAction(IBuildSteppingContext context, ActionExecutionTiming executionTiming)  
at Continua.Stepping.SteppingEngine`1.RunFrom(Action startAction) at Continua.Modules.Builds.Agent.AgentBuildRunner.OnExecuting(Transition`1 inState)

(on Agent: phus-tfsagt01)

The image below is the current setup I have in the XUnit action. The only change I’ve made from the default is the path to the Tests.dll. Any idea what I may be doing wrong, or what might be missing in our setup? I have triple checked the path with the variables, though I haven’t tried it without the variables yet.

Thanks!

 ![image](https://www.finalbuilder.com/forums/uploads/default/original/2X/0/0952e73ea2810cb6d3ee0724d2c99035de4561a5.png)

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [January 9, 2019, 11:53pm UTC](https://www.finalbuilder.com/forums/t/error-when-attempting-xunit-command/6393/2 "2019-01-09T23:53:55Z")

</div>

Hi aszuul,

Thank you for reporting this. We have confirmed that this is a bug. When version `2.4.1` was added to the `XUnit Version` list, we omitted to add some related code. We’ve now implemented a fix and should have a new version out in the next day or two.

Meanwhile you should be able to work around this either by selecting `2.4` or `Custom` for the `XUnit Version`. If you choose `Custom`, enter the `XUnit Runner Version` as `2.4.1`

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [January 11, 2019, 1:50am UTC](https://www.finalbuilder.com/forums/t/error-when-attempting-xunit-command/6393/3 "2019-01-11T01:50:56Z")

</div>

A fix for this bug has been included in [version 1.9.0.300](https://www.finalbuilder.com/downloads/continuaci/continua-ci-version-history-v19)
