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

Notification

Icon
Error

Unable to load component: System.IO.IOException: The path '' could not be processed
stenjo
#1 Posted : Wednesday, June 8, 2022 2:07:40 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/8/2022(UTC)
Posts: 3
Location: Norway

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Ive been using nCrunch for years and am a huge fan. Recently changed project and trying to make my nCrunch run on VS 2022, running on Mac but Win10 environment (Parallels) and am getting the following exception when enabling nCrunch on the solution:

Quote:
Unable to load component: System.IO.IOException: The path '' could not be processed because it is not of legal form
at nCrunch.Common.IO.DiskPath..ctor(String absolutePath, Boolean pathIsChecked)
at nCrunch.Common.IO.DirectoryPath.FromAbsolutePath(String absoluteFilePath)
at nCrunch.Client.ComponentLoader.SnapshotComponentFactory.(DirectoryPath )
at nCrunch.Client.ComponentLoader.SnapshotComponentFactory.CreateComponentsFromXml(FilePath projectFilePath, BuildXml projectXml, FilePath solutionFilePath, String[] additionalFilesToIncludeAtSolutionLevel, Boolean isLoadedFromFile, VisualStudioVersion vsVersion)
at nCrunch.Client.Initialisation.ProjectLoadInitTask.Run()

This is following a build error on all projects in the list.

Any idea if there is a config button I can adjust to make this message go away?

Remco
#2 Posted : Wednesday, June 8, 2022 11:39:14 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 868 times
Was thanked: 1179 time(s) in 1099 post(s)
Hi, thanks for sharing this issue.

It looks to me like there is invalid data (i.e. a null project file path) being fed into the engine.

I'm not really sure how it's possible that this can happen. Does it happen on every solution? If you create a new sample project with one of the standard VS project templates, does the problem occur?
stenjo
#3 Posted : Thursday, June 9, 2022 8:40:22 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/8/2022(UTC)
Posts: 3
Location: Norway

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Looks like new solutions and projects works fine.
Seems to be something with this old one that Im currently looking at. Old .NET 451 with some issues around non-maintained packages. Could be part of the problem.
Remco
#4 Posted : Thursday, June 9, 2022 12:48:16 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 868 times
Was thanked: 1179 time(s) in 1099 post(s)
stenjo;16146 wrote:
Looks like new solutions and projects works fine.
Seems to be something with this old one that Im currently looking at. Old .NET 451 with some issues around non-maintained packages. Could be part of the problem.


Could you submit a bug report after you've had this happen? I'm hoping the log file might yield some clues as to why this is happening.
Remco
#5 Posted : Friday, June 10, 2022 12:28:09 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 868 times
Was thanked: 1179 time(s) in 1099 post(s)
Thanks for the sending through the bug report.

It looks like the issue is caused by attempting to open the solution over a UNC path. Could you try mapping a network drive to the remote path and opening it from the mapped drive instead?
1 user thanked Remco for this useful post.
stenjo on 6/13/2022(UTC)
stenjo
#6 Posted : Friday, June 10, 2022 1:28:55 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/8/2022(UTC)
Posts: 3
Location: Norway

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Yes, I did, and using a mapped path fixed it. Still a build error on one of the projects but overall this now runs smooth.
Thanks for all the help.
1 user thanked stenjo for this useful post.
Remco on 6/11/2022(UTC)
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.041 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download