Rank: Member
Groups: Registered
Joined: 10/21/2021(UTC) Posts: 10 Location: Austria
Thanks: 1 times Was thanked: 1 time(s) in 1 post(s)
|
With the newest 4.10.0.6 I get the following error on my Grid Node (running as a service under LOCAL_SYSTEM) Code:
System.IO.IOException: Could not find a part of the path 'C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\VisualStudio'.: C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\VisualStudio
at nCrunch.Common.IO.DirectoryPath.GetDirectories(String wildcardSpec)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.(VisualStudioVersion )
at nCrunch.Core.BuildManagement.BuildProcessLauncher.(IList`1 , ProcessLoadParameters , VisualStudioVersion )
at nCrunch.Core.BuildManagement.BuildProcessLauncher.(EffectiveProcessorArchitecture , BuildSystemParameters , IList`1 , FilePath )
at nCrunch.Core.BuildManagement.BuildProcessLauncher..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.(Action`1 , EffectiveProcessorArchitecture , GridClientId , BuildSystemParameters , IList`1 , Nullable`1 , GridAddress )
at nCrunch.Core.BuildManagement.BuildProcessLauncher.BuildComponentInExternalProcess(ComponentBuildParameters buildParameters, VisualStudioVersion vsVersion, GridClientId client, IList`1 customEnvironmentVariables, Guid taskId, GridAddress clientAddress)
at nCrunch.Core.BuildManagement.BuildEnvironment.Build(SnapshotComponent snapshotComponentToBuild, IList`1 referencedComponents, GridClientId gridClientId, IList`1 customEnvironmentVariables, IPlatformBuildExtender extender, Guid taskId, GridAddress clientAddress, Boolean extractCoverageReportStructure)
at nCrunch.Core.Processing.BuildTaskLogic.DoProcessTaskAndReturnSuccessFlag()
at nCrunch.Core.Processing.TaskLogic.ProcessTaskAndReturnSuccessFlag()
at nCrunch.GridNode.NodeTaskProcessor..()
at nCrunch.Common.ErrorHandler.DoWithErrorHandling(Action action, Object context)
I then tried to run the service under a named user account (John.Doe) to rule out problems with the LOCAL_SYSTEM user: Code:
System.IO.IOException: Could not find a part of the path 'C:\Users\John.Doe\AppData\Local\Microsoft\VisualStudio'.: C:\Users\John.Doe\AppData\Local\Microsoft\VisualStudio
at nCrunch.Common.IO.DirectoryPath.GetDirectories(String wildcardSpec)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.(VisualStudioVersion )
at nCrunch.Core.BuildManagement.BuildProcessLauncher.(IList`1 , ProcessLoadParameters , VisualStudioVersion )
at nCrunch.Core.BuildManagement.BuildProcessLauncher.(EffectiveProcessorArchitecture , BuildSystemParameters , IList`1 , FilePath )
at nCrunch.Core.BuildManagement.BuildProcessLauncher..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.(Action`1 , EffectiveProcessorArchitecture , GridClientId , BuildSystemParameters , IList`1 , Nullable`1 , GridAddress )
at nCrunch.Core.BuildManagement.BuildProcessLauncher.BuildComponentInExternalProcess(ComponentBuildParameters buildParameters, VisualStudioVersion vsVersion, GridClientId client, IList`1 customEnvironmentVariables, Guid taskId, GridAddress clientAddress)
at nCrunch.Core.BuildManagement.BuildEnvironment.Build(SnapshotComponent snapshotComponentToBuild, IList`1 referencedComponents, GridClientId gridClientId, IList`1 customEnvironmentVariables, IPlatformBuildExtender extender, Guid taskId, GridAddress clientAddress, Boolean extractCoverageReportStructure)
at nCrunch.Core.Processing.BuildTaskLogic.DoProcessTaskAndReturnSuccessFlag()
at nCrunch.Core.Processing.TaskLogic.ProcessTaskAndReturnSuccessFlag()
at nCrunch.GridNode.NodeTaskProcessor..()
at nCrunch.Common.ErrorHandler.DoWithErrorHandling(Action action, Object context)
It seems that
- when I run as a user where this folder exists, everything works fine
- when I run as a user where this folder does not exist, I get the error BUT when I create an empty folder at the specified path, it starts to work again.
Please have a look at this problem; it was working fine in all the versions of the last 24 months. If you need more information, do not hesitate to contact me. For now I'm going to work around the problem by creating the folders where necessary. --- Alex
|