The MVC Video Training from Pluralsight have been very helpful right up to the 3rd module, "Razor Views"
I have been following all the steps, doing what the trainer does, right up until where in the 2nd video in the "Razor Views"module, the trainer adds the "RestaurantReviews" controller.
Not sure if my problems are because of (a) different versions of MVC; t's an MVC 3 project but I have MVC 4 installed as well. (b) my missing some instructions, or (c) the presenter skipping some steps.
Two problems:
1) He has an older and simpler Add Controller dialogue box that only offers CRUD options. Mine has Scaffolding Options, Model Class, etc and I do not know what to fille in.
2) When I try to proceed (using and of the Scaffolding Options) and follow the instructions, 2 errors occur:
Error 1 The type or namespace name 'Queries' does not exist in the namespace 'OdeToFood' (are you missing an assembly reference?) C:\Users\Stephen\Documents\Visual Studio 2010\Projects\OdeToFood\OdeToFood\Controllers\ReviewsController.cs 7
17 OdeToFood
Error 2 The type or namespace name 'FoodDb' could not be found (are you missing a using directive or an assembly reference?) C:\Users\Stephen\Documents\Visual Studio 2010\Projects\OdeToFood\OdeToFood\Controllers\ReviewsController.cs 13 9
OdeToFood
1. Yes. My installation has all current MVC (when I create a project I can choose MVC 2, 3 or 4. For this tutorial I chose 3)Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel Microsoft .NET Framework Version 4.0.30319 SP1Rel Installed Version: WD Express Microsoft Visual Web Developer 2010 Express - ENU Service Pack 1 (KB983509) KB983509 NuGet Package Manager 2.2.31210.9045
2. Yes
I notice in the video that he suddenly has a Queries directory and Models that I do not have, and suspect he skipped some steps in the presentation.
I do not see code samples anywhere,; until this point I was creating them as I followed the tutorial.. They are here on this site: http://www.asp.net/mvc/pluralsight
This is the particular video I have gotten lost on
as I proceed I see it is just the structure of this video series. There are more and more code samples included that were not demostrated, making it impossible to follow along.
You are correct in that the "Add Controller" was updated, however you can still get it to behave the same way as the video by simply choosing "Empty MVC Controller".
You can then manually type in the name action methods. I just checked and there are only 2 actions an index and details.
Scaffolding is a great feature and time saver, but you should learn how to build you controllers and action methods manually to get a better understanding on how asp.net mvc works. Afterwards, when you are comfortable, you can use the scaffolder to get something
quicker. At that point you will able to customize the scafolded code since you know what it's doing.
This isn't really an error , just that the video series is using an older version of the framework that didn't include the scaffolding tools. In terms of the Queries and Models folder, don't worry the next module is on data access. For this one , just focus
on learning Razor views and maybe continuing coding along in the next module.
schurch
Member
5 Points
6 Posts
MVC Video Training: RestaurantReviews controller problem
Jan 06, 2013 02:55 PM|LINK
The MVC Video Training from Pluralsight have been very helpful right up to the 3rd module, "Razor Views"
I have been following all the steps, doing what the trainer does, right up until where in the 2nd video in the "Razor Views"module, the trainer adds the "RestaurantReviews" controller.
Not sure if my problems are because of (a) different versions of MVC; t's an MVC 3 project but I have MVC 4 installed as well. (b) my missing some instructions, or (c) the presenter skipping some steps.
Two problems:
1) He has an older and simpler Add Controller dialogue box that only offers CRUD options. Mine has Scaffolding Options, Model Class, etc and I do not know what to fille in.
2) When I try to proceed (using and of the Scaffolding Options) and follow the instructions, 2 errors occur:
Error 1 The type or namespace name 'Queries' does not exist in the namespace 'OdeToFood' (are you missing an assembly reference?) C:\Users\Stephen\Documents\Visual Studio 2010\Projects\OdeToFood\OdeToFood\Controllers\ReviewsController.cs 7 17 OdeToFood
Error 2 The type or namespace name 'FoodDb' could not be found (are you missing a using directive or an assembly reference?) C:\Users\Stephen\Documents\Visual Studio 2010\Projects\OdeToFood\OdeToFood\Controllers\ReviewsController.cs 13 9 OdeToFood
Any one know about this?
Thanks
raduenuca
All-Star
24675 Points
4250 Posts
Re: MVC Video Training: RestaurantReviews controller problem
Jan 06, 2013 03:00 PM|LINK
1. You have MVC3 Tools Update
2. HAve you compiled the code first?
Radu Enuca | Blog
schurch
Member
5 Points
6 Posts
Re: MVC Video Training: RestaurantReviews controller problem
Jan 06, 2013 03:50 PM|LINK
Thanks for the reply
1. Yes. My installation has all current MVC (when I create a project I can choose MVC 2, 3 or 4. For this tutorial I chose 3)Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.0.30319 SP1Rel
Installed Version: WD Express
Microsoft Visual Web Developer 2010 Express - ENU Service Pack 1 (KB983509) KB983509
NuGet Package Manager 2.2.31210.9045
2. Yes
I notice in the video that he suddenly has a Queries directory and Models that I do not have, and suspect he skipped some steps in the presentation.
raduenuca
All-Star
24675 Points
4250 Posts
Re: MVC Video Training: RestaurantReviews controller problem
Jan 06, 2013 04:02 PM|LINK
Can you download the files? Or you have the basic option?
Radu Enuca | Blog
schurch
Member
5 Points
6 Posts
Re: MVC Video Training: RestaurantReviews controller problem
Jan 06, 2013 04:23 PM|LINK
I do not see code samples anywhere,; until this point I was creating them as I followed the tutorial.. They are here on this site: http://www.asp.net/mvc/pluralsight
This is the particular video I have gotten lost on
http://pluralsight.com/training/players/PSODPlayer?author=scott-allen&name=mvc3-building-views&mode=live&clip=0&course=aspdotnet-mvc3-intro
schurch
Member
5 Points
6 Posts
Re: MVC Video Training: RestaurantReviews controller problem
Jan 06, 2013 07:47 PM|LINK
as I proceed I see it is just the structure of this video series. There are more and more code samples included that were not demostrated, making it impossible to follow along.
Still helpful, though
raduenuca
All-Star
24675 Points
4250 Posts
Re: MVC Video Training: RestaurantReviews controller problem
Jan 07, 2013 02:51 PM|LINK
If you get the premium membership you get to download the exercise files
Radu Enuca | Blog
CodeHobo
All-Star
18647 Points
2647 Posts
Re: MVC Video Training: RestaurantReviews controller problem
Jan 07, 2013 03:19 PM|LINK
You are correct in that the "Add Controller" was updated, however you can still get it to behave the same way as the video by simply choosing "Empty MVC Controller".
You can then manually type in the name action methods. I just checked and there are only 2 actions an index and details.
Scaffolding is a great feature and time saver, but you should learn how to build you controllers and action methods manually to get a better understanding on how asp.net mvc works. Afterwards, when you are comfortable, you can use the scaffolder to get something quicker. At that point you will able to customize the scafolded code since you know what it's doing.
This isn't really an error , just that the video series is using an older version of the framework that didn't include the scaffolding tools. In terms of the Queries and Models folder, don't worry the next module is on data access. For this one , just focus on learning Razor views and maybe continuing coding along in the next module.
Good luck!
Blog | Twitter : @Hattan
schurch
Member
5 Points
6 Posts
Re: MVC Video Training: RestaurantReviews controller problem
Jan 08, 2013 12:40 AM|LINK
thanks, I will continue through the series. And congrats on the MVP status!