Paul
Paul

Reputation: 153

What does the error mean: Path cannot be the empty string or all whitespace

My project will parse XML file and do some job.

If i'm inside VS 2005 and I run my project, it works fine.

If i try to execute my project (console application / .exe) i got this error:

Path cannot be the empty string or all whitespace

Upvotes: 0

Views: 14340

Answers (1)

Sonu Rajpoot
Sonu Rajpoot

Reputation: 505

I was also facing same issue while using visual studio 2017 Error: 'path' cannot be an empty string ("")

Below solution worked for me.

Solution Steps :

  1. Right click on solution.

  2. Click Disable Lightweight Solution Load

  3. Then restart your Visual studio.

  4. Then try to Build/Rebuild solution.

I hope, now you are able to build.

Reason to face this issue in VS2017 :

As I researched, Microsoft provided lots of new features in visual studio 2017. One is :

Visual Studio starts faster, is more responsive, and uses less memory than before.

To achieve this feature we need to Enable Lightweight Solution load.

For more information https://learn.microsoft.com/en-us/visualstudio/ide/whats-new-in-visual-studio

Upvotes: 0

Related Questions