Hi David,
Apologies for not replying sooner. I've been moving house. You're definitely on the way to solving your problem. From what you've written, the issue probably is because you've been copying the Chapter03 folder across directories. Can I just check which web server you're using - IIS or the server in VWD? When you load the site in VWD do you just hit F5 to run the site or use IIS to run the site?
Basically, The <authentication> element is only allowed in your web.config at the root of your application. If you copy the whole site (and web.config), the web server gets confused and the allowDefinition="machineToApplication" setting - which is in the machine.config file in your .NEt installation directory cries foul because it doesn't know which web.config <authentication> element is correct for the web application.
The basic solution if you run IIS is to create a virtual application for each copy fo the website you create - this will isolate each web.config within a virtual application as required.
If you're using the web server (Cassini) inside VWD, hitting F5 while the site is loaded in VWD should be enough to create a virtual application around it and for you to have no problems. A general rule fo thumb would also be to just use one copy of the website. If you have to keep multiple copies, stick the ones you aren't using in a Temp folder somewhere away from the current one and that should clear it up.
If you google for allowdefinition='machinetoapplication' as well, there are many many threads on other forums which can help you out as well but the above is the usual solution.
I hoep that helps and sorry for the delay
Dan
Dan Maharry
Read the feed at
http://feeds.feedburner.com/dansarchive