You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I get an error when pressing F5 after the initial try it out! I get the following error:
It is an error to use a section registered as allowdefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
I had the problem too. The solution (I believe) was in how you open the web page in Visual Studio. Ih has to be opened as a web page and not a Project/Solution. When I did this, the issue went away.
Ok, I managed to fix the problem. There is an error in the book, the folder that is suppose to be open is chapter03\samples. Once I did this, it fixed the problem.