You are currently viewing the BOOK: Beginning ASP.NET MVC 1.0 ISBN: 978-0-470-43399-7 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'm get the squigglies underneath the word start in the code/markup of my index view - listing 3-6 in chapter 3. The error being an uknown namespace or....etc
I suspect maybe that using an MVC 2 Project template may mean there are nuances and that this could be on of them?
Please let me know your thoughts if you may be able to help.
As an aside, the first 38 pages have been an interesting read and I'm still looking forward to the rest of this book.
Hi Nick,
I'm glad you liked the first pages of book: I hope you'll like the rest of the book as well :)
As for the errors you get, the samples have been developed with ASP.NET MVC version 1 and .NET 3.5. If you are using MVC 2 or .NET 4 you might get some errors as there has been some changes.
I downloaded the MVC 1 template from codeplex and still seem to be having an error with the Start.Models.Person. Apparently the start is an unknown namespace.
When I hit build it succeeds, so I'm just wondering if this is one of those quirks that shows up in the IDE but isn't actually a problem come compile time. Similar to the attribute for setting CSS friendly classes in web forms.
If there is anything you think I might be missing please give me a shout. In the meantime I'll re-examine the pages and make sure I've not overlooked some bits of the code.