Well, I figured it out.
I moved the project back to the file system, out of IIS.
From Visual Studio, opened the website only, not the entire project as I did earlier. Built the project and ran it successfully.
Still don't understand why it didn't work when I tried to open the entire solution, as a did before many times.