I replaced each and every file in the two projects. I get the same error. But the Identical files run fine in the packaged solution.
It's still a great tutorial and I still learned a lot from it.
Now I suspect it must be one of those configuration things.
I run into the same problem with so many tutorial and example applications for ASP.NET
You have to have the same Edition of VS, Framework, SDK, SQL, ect. to get the same results.
The authors should spend more time on helping the readers getting the environment set up to match theirs.