OK, this was a strange one.
I’m sure this is not a visual studio bug, but it’s something you ought to know.
The cause turned out to be that a few weeks ago I copied the production web site
into a folder called “Backup” on my local host and I hadn’t rebuilt the project
since then.
But my backup folder was inside the project web directory.
That is a bad thing.
For one issue, there was a separate web.config file contained in this backup
directory. For another, there was compiled code.
Just getting rid of the folder fixed the problem.

























