Rank: Member
Groups: Registered
Joined: 8/13/2017(UTC) Posts: 15 Location: Australia
Thanks: 4 times Was thanked: 3 time(s) in 3 post(s)
|
I have just recently upgraded to VS 2017 from VS 2013. This involved moving up a patch level with NCrunch and installing via the 2017 installer. On VS 2013 everything was working ok, but on VS 2017 I am finding that most projects fail to load, with the following exception: Code:
System.InvalidOperationException: No process is associated with this object.
at System.Diagnostics.Process.EnsureState(State state)
at System.Diagnostics.Process.EnsureState(State state)
at System.Diagnostics.Process.get_Id()
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(ExternalProcess )
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(ProcessorArchitecture , ProcessLoadParameters )
at nCrunch.Core.ProcessManagement.ExternalProcessManager.LoadExternalProcess(ProcessLoadParameters parameters, GridClientId client)
at nCrunch.Core.BuildManagement.BuildProcessLauncher..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TryTrackActivity(String name, Action activity)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.(Action`1 , ProcessorArchitecture , GridClientId , BuildSystemParameters , IList`1 )
at nCrunch.Core.BuildManagement.BuildProcessLauncher.AnalyseComponentBuildInExternalProcess(ComponentLoadParameters parameters, IList`1 customEnvironmentVariables)
at nCrunch.Client.ComponentLoader.SnapshotComponentLoader.(ProcessorArchitecture , String )
at 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)
Our company has SRP (Software Restriction Policies) in place, which when temporarily disabled allow the project to load and build in NCrunch without issue. I can add local SRP rules to make an exception for NCrunch, but profiling using Process Monitor I was unable to determine exactly what executable/path is being blocked, and i'm not sure if this is the correct solution to the problem. Can anybody shed any more light on this issue, or point me in the right direction for further debugging? Thanks,
|