Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Test execution on grid nodes failing with "user-mapped section open" error
stevewilliams
#1 Posted : Monday, March 18, 2024 4:22:19 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/28/2016(UTC)
Posts: 4
Location: United Kingdom

In recent times, our grid nodes have started failing with this error:

[CIL Task ProcessorERROR: System.IO.IOException: The requested operation cannot be performed on a file with a user-mapped section open.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at nCrunch.Common.IO.FilePath.<>c__DisplayClass39_0.<WriteContent>b__0()
at nCrunch.Compiler.Cil.Manipulation.CilManipulatedFileContent.WriteToFile(FilePath outputFile)
at nCrunch.Compiler.Cil.Manipulation.CilManipulationOperation.WriteToFile()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly. . ()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.Instrument(IInstrumentationFilter[] instrumentationFilters, PerfTracker perfTracker)
at nCrunch.Compiler.CilProcessingTasks.CilInstrumentationTask.ProcessTask(IBuiltAssembly builtAssembly, ComponentInstrumentationParameters instrumentationParameters, BuildOutput output)
at nCrunch.Compiler.CilProcessingTasks.ConcurrentCi-73] ERROR: System.IO.IOException: The requested operation cannot be performed on a file with a user-mapped section open.

Any suggestions on possible causes would be much appreciated
Remco
#2 Posted : Monday, March 18, 2024 7:36:48 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,147

Thanks: 961 times
Was thanked: 1294 time(s) in 1200 post(s)
Hi, thanks for sharing this issue.

Something is holding a file lock on one of your assemblies after its build has been completed.

This smells like a bad build step is involved. Are you running any custom build steps? Perhaps any Nuget packages that have additional build logic?
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.024 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download