I'm using the console version of ncrunch on my build box and I've gotten this error on one of my pipelines:
11:20:44.736 NCrunch Console Tool v3.6.0.2
11:20:44.736 Copyright c 2010-2016 Remco Software Ltd
11:20:44.736 Usage of this tool is permitted only under the terms described in License.rtf
11:20:44.736
11:20:44.736
11:20:44.908
11:20:44.940 Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: The parameter is incorrect
11:20:44.940 at System.Drawing.Icon.Initialize(Int32 width, Int32 height)
11:20:44.940 --- End of inner exception stack trace ---
11:20:44.940 at System.RuntimeMethodHandle.SerializationInvoke(IRuntimeMethodInfo method, Object target, SerializationInfo info, StreamingContext& context)
11:20:44.940 at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
11:20:44.940 at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
11:20:44.940 at System.Runtime.Serialization.ObjectManager.DoFixups()
11:20:44.940 at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
11:20:44.940 at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
11:20:44.940 at System.Resources.ResourceReader.DeserializeObject(Int32 typeIndex)
11:20:44.940 at System.Resources.ResourceReader.LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode)
11:20:44.940 at System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase, Boolean isString)
11:20:44.940 at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream)
11:20:44.940 at #=qt_VcUogRcUEkvmdlv0TCL6eie8nI_ZSf4VFP03BiLcexIN0LK9szsekIgW8b2w2E.#=q7hOFOc7XCgWFIGUEuQFMIoql6QiGHs9Rytlu1Kvt0lg=()
11:20:44.940 at #=qt_VcUogRcUEkvmdlv0TCL6eie8nI_ZSf4VFP03BiLcexIN0LK9szsekIgW8b2w2E..ctor()
11:20:44.940 at RM.Product.Model.Client.UserManager.Initialise(IntPtr mainWindowHandle, String productName, Byte[] applicableProductAuthenticationData, DateTime applicableLicensesStartDate, StorageLevel storageLevel, ILicenseProtocol protocol, Boolean licenseServerLeaseRequired)
11:20:44.940 at .()
11:20:44.940 at .(String[] )
11:20:44.940 at .(String[] )
11:20:45.408 Running build failed.
11:20:45.408 Error:
11:20:45.408 System.Exception: BuildSystem\ncrunch\NCrunch.exe exited with error 255
11:20:45.408 at
FSI_0005.Build.ShellExec@60.Invoke(String message) in D:\Go\A\pipelines\SomeDir\BuildSystem\build.fsx:line 60
11:20:45.408 at FSI_0005.Build.ShellExec(String command, String args) in D:\Go\A\pipelines\SomeDir\BuildSystem\build.fsx:line 60
11:20:45.408 at
FSI_0005.Build.clo@101-8.Invoke(Unit _arg4) in D:\Go\A\pipelines\SomeDir\BuildSystem\build.fsx:line 102
11:20:45.408 at Fake.TargetHelper.runSingleTarget(TargetTemplate`1 target) in C:\code\fake\src\app\FakeLib\TargetHelper.fs:line 511
Oddly the code it's failing on is a blank console app that was added today. The other console apps we have in other pipelines using the same build scripts on the same build box works fine. Even stranger if I pull the pipeline to my local box it compiles fine as well.
Any ideas on what icon it's looking for? I'm honestly not even sure this is a NCrunch issue. I'm guessing the build agents is missing some security permission, but it's an admin on the box, so I'm grasping at straws.