System.InvalidCastException: Invalid cast from 'System.String' to
'ThoughtWorks.CruiseControl.Core.Tasks.FBVariable[]'.
at System.Convert.DefaultToType(IConvertible value, Type
targetType, IFormatProvider provider)
at System.String.System.IConvertible.ToType(Type type,
IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType,
IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType)
at
ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility.PropertyValue.ChangeFieldValue
(Object value) in C:\Documents and Settings\Developer\Desktop
\CruiseControl.NET-1.5.6524.2.source\project\core\tasks
\DynamicValueUtility.cs:line 613
at
ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility.PropertyValue.ChangeProperty
(Object value) in C:\Documents and Settings\Developer\Desktop
\CruiseControl.NET-1.5.6524.2.source\project\core\tasks
\DynamicValueUtility.cs:line 564
at ThoughtWorks.CruiseControl.Core.Tasks.DirectDynamicValue.ApplyTo
(Object value, Dictionary`2 parameters, IEnumerable`1
parameterDefinitions) in C:\Documents and Settings\Developer\Desktop
\CruiseControl.NET-1.5.6524.2.source\project\core\tasks
\DirectDynamicValue.cs:line 130
at ThoughtWorks.CruiseControl.Core.Tasks.TaskBase.ApplyParameters
(Dictionary`2 parameters, IEnumerable`1 parameterDefinitions) in C:
\Documents and Settings\Developer\Desktop
\CruiseControl.NET-1.5.6524.2.source\project\core\tasks
\TaskBase.cs:line 148
at ThoughtWorks.CruiseControl.Core.Project.RunTasks
(IIntegrationResult result, IList tasksToRun, Dictionary`2
parameterValues) in C:\Documents and Settings\Developer\Desktop
\CruiseControl.NET-1.5.6524.2.source\project\core\Project.cs:line 645
at ThoughtWorks.CruiseControl.Core.Project.Run(IIntegrationResult
result) in C:\Documents and Settings\Developer\Desktop
\CruiseControl.NET-1.5.6524.2.source\project\core\Project.cs:line 631
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Build
(IIntegrationResult result) in C:\Documents and Settings\Developer
\Desktop\CruiseControl.NET-1.5.6524.2.source\project\core
\IntegrationRunner.cs:line 187
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate
(IntegrationRequest request) in C:\Documents and Settings\Developer
\Desktop\CruiseControl.NET-1.5.6524.2.source\project\core
\IntegrationRunner.cs:line 93
On 13 Des, 22:11, Craig Sutherland <cj.sutherl...@xtra.co.nz> wrote:
> Hi Thomas,
>
> I think I have fixed this issue now, but ccnetlive is down so I am unable to check the result :-(
>
> Basically the problem is FBVariables is an array and the preprocessor was not handling arrays correctly. The fix involved changed the preprocessor to detect the array and correctly format the dynamic value internally.
>
> Craig
>
> ________________________________
> From: ThomasH <thomas.heggel...@gmail.com>
Yes, there was another bug in the code :-(
I've fixed that bug and used your config to test it, now it should be
working ok.
New build is available at
http://ccnetlive.thoughtworks.com/CCNet-builds/1.5.0/1.5.6524.3/.
Craig