For those who get this error on your local system, this can happen when you transfer the code on several servers or copy an existing project to a new location, and this path to the virtual directory still refers to the earlier path.
This happened to me when I shared a project on a Google drive and accessed it from two different systems. (I know I should have used a version control system)
Decision:
Right click on the project -> Web -> Create Virtual Directory
A prompt will probably appear. Select "Yes" and everything will be done.
source share