Daily Usage Issues

[Fixed] Ncrunch can no longer build a project but VS2017 can

Started by sadral on 4,075 views

Hello,

It seems ncrunch can no longer build one of my projects.
The solution seems to build fine in VS2017 on my machine and on the TeamCity machine.
So I don't think there are any broken references as the exception seems to suggest.

Ncrunch reports this exception while loading the project :
System.Exception: An exception was thrown in the remote environment: System.Reflection.TargetInvocationException: Une exception a été levée par la cible d'un appel. ---> nCrunch.Common.UserException: Errors occurred while trying to load the project file:
Could not resolve COM reference "eab22ac0-30c1-11cf-a7eb-0000c05bae0b" version 1.1. Une exception a été levée par l'initialiseur de type pour 'Microsoft.Build.Collections.MSBuildNameIgnoreCaseComparer'.
à nCrunch.Compiler.RemoteBuildRunner.(FilePath , LoadTimeQuery , String , String , DirectoryPath , String , String )
à nCrunch.Compiler.RemoteBuildRunner.AnalyseComponentBuild(ComponentLoadParameters parameters)
--- Fin de la trace de la pile d'exception interne ---
à System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
à System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
à nCrunch.TaskRunner.Ipc.IpcMessageProcessor.(CallMethodMessage )
à nCrunch.TaskRunner.Ipc.IpcMessageProcessor.ProcessMessageReturningResult(Byte[] data)
à nCrunch.TaskRunner.Ipc.RemoteInstance.(Byte[] )
à nCrunch.TaskRunner.Ipc.RemoteInstance.Invoke(IMessage msg)
à System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
à nCrunch.Compiler.IRemoteBuildRunner.AnalyseComponentBuild(ComponentLoadParameters parameters)
à nCrunch.Core.BuildManagement.BuildProcessLauncher..(IRemoteBuildRunner )
à nCrunch.Core.BuildManagement.BuildProcessLauncher.(Action`1 , FilePath , String , ExternalProcess )
à nCrunch.Core.BuildManagement.BuildProcessLauncher.(Action`1 , ProcessorArchitecture , GridClientId , BuildSystemParameters , IList`1 )
à nCrunch.Core.BuildManagement.BuildProcessLauncher.AnalyseComponentBuildInExternalProcess(ComponentLoadParameters parameters, IList`1 customEnvironmentVariables)
à nCrunch.Client.ComponentLoader.SnapshotComponentLoader.(ProcessorArchitecture , String )
à nCrunch.Client.ComponentLoader.SnapshotComponentLoader.CreateComponentFromXml(FilePath projectFilePath, ParsedBuildXml projectXml, FilePath solutionFilePath, String[] additionalFilesToIncludeAtSolutionLevel, Boolean isLoadedFromFile, VisualStudioVersion vsVersion, ComponentUniqueName componentName, TaskSettings componentTaskSettings, Exception parseException, String targetFramework)


I'm not sure if it's related to the last update of VS2017 (the problem seems to have appeared after the update).
The version of VS2017 is v15.5.6.
Ncrunch version is 3.11.0.9.

Does someone have any idea of what may be causing this issue ?

Thanks.

Edited

Hi, thanks for sharing this problem.

Can you confirm if this problem appears on the latest version of NCrunch (v3.12)? v3.12 saw quite a few fixes over v3.11 in terms of compatibility improvements for newer releases of VS.
Damn, I was persuaded I already had the last version when I saw it's date.
I didn't check the actual version number ...

After installing the latest version everything works fine.

Thank you.

Post a reply

Log in to reply.