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

Notification

Icon
Error

System.IO.PathTooLongException
ewinhong
#1 Posted : Tuesday, February 22, 2022 8:08:47 PM(UTC)
Rank: Member

Groups: Registered
Joined: 5/5/2016(UTC)
Posts: 14
Location: United States of America

Ncrunch console tool throws exception being too long

[PID:37976 14:55:48.9414 LocalBuildTask-43] ERROR (Internal): System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
at System.IO.PathHelper.GetFullPathName()
at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.GetFullPathInternal(String path)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at nCrunch.Common.IO.FilePath.CopyTo(FilePath destinationPath, Boolean waitForLock)
at nCrunch.Core.ProjectItems.SnapshotComponentMember.WriteToFile(FilePath fileToWriteTo)
at nCrunch.Core.WorkspaceManagement.WorkspaceBuilder.(SnapshotComponentMember )
Remco
#2 Posted : Tuesday, February 22, 2022 10:45:27 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,571

Thanks: 862 times
Was thanked: 1176 time(s) in 1097 post(s)
Hi,

This can happen if you have a solution with very long paths in it.

Try setting your workspace base path to be closer to the root of your disk.
ewinhong
#3 Posted : Wednesday, February 23, 2022 1:51:15 AM(UTC)
Rank: Member

Groups: Registered
Joined: 5/5/2016(UTC)
Posts: 14
Location: United States of America

Remco;16012 wrote:
Hi,

This can happen if you have a solution with very long paths in it.

Try setting your workspace base path to be closer to the root of your disk.


that worked from visual studio. going to try ncrunch console to confirm.
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.027 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download