Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Professional ASP.NET MVC 2
|
BOOK: Professional ASP.NET MVC 2
This is the forum to discuss the Wrox book Professional ASP.NET MVC 2 by Jon Galloway, Scott Hanselman, Phil Haack, Scott Guthrie, Rob Conery; ISBN: Professional ASP.NET MVC 2
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET MVC 2 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
 
Old June 11th, 2011, 07:48 AM
Registered User
 
Join Date: Sep 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default NerdDinner namespace name 'FormViewModel' does not exist

Hi,

I am getting error: The type or namespace name 'FormViewModel' does not exist in the namespace 'NerdDinner.Controllers' (are you missing an assembly reference?) when I click Edit in NerdDinner page.
It started when I created DinnerFormViewModel.cs.

Help would be most appreciated.

Thank you.
 
Old June 13th, 2011, 09:26 AM
Friend of Wrox
 
Join Date: Oct 2010
Posts: 106
Thanks: 1
Thanked 17 Times in 17 Posts
Default

Hope this helps

Page 88:
Doesn't say where to create the DinnerFormViewModel. Do it in the Models folder.
Compile error. Fix by adding: using System.Web.Mvc


Page 89 - Wrong: Inherits=”System.Web.Mvc.ViewPage<NerdDinner.Contr ollers.DinnerFormViewModel>
Right: Inherits=”System.Web.Mvc.ViewPage<NerdDinner.Model s.DinnerFormViewModel>





Similar Threads
Thread Thread Starter Forum Replies Last Post
NerdDinner mvcBeginner BOOK: Professional ASP.NET MVC 2 2 December 23rd, 2010 12:59 AM
NerdDinner ViewModel Errata Darthus BOOK: Professional ASP.NET MVC 2 10 September 20th, 2010 01:02 PM
NerdDinner Example Phils_UK BOOK: Professional ASP.NET MVC 2 1 July 6th, 2010 07:49 PM
Chapter 1 - NerdDinner - Errors Steve S BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 17 May 22nd, 2010 03:22 PM
error CS0234: The type or namespace name 'Xml' does not exist in the namespace 'Syste shailesh_kumar C# 2008 aka C# 3.0 8 August 20th, 2009 03:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.