0

I'm having trouble adding a database controller as specified in the W3 lesson here. I am able to set the name of the controller to "MoviesController", but then I have no option for selecting a template, a model class, or any of the options that W3 denotes. (Image of said issue)

How might my VS setup be incorrect?

tereško
  • 58,060
  • 25
  • 98
  • 150
theLearningChan
  • 373
  • 2
  • 12
  • Did you make a model class and compiled your project? – WannaCSharp Aug 07 '13 at 21:55
  • 1
    I think you should use this url instead: http://www.asp.net/mvc. Just saying... – codingbiz Aug 07 '13 at 21:56
  • @codingbiz, you're definitely right. I'm just trying to get this app up, and I'm running into blocker after blocker. – theLearningChan Aug 07 '13 at 22:02
  • @WannaCSharp: Yes, I did. The model class is called MovieDB.cs. I did however run into problems compiling. The `using System.Data.Entity;` reference had errors, so I Googled it. I found [this](http://stackoverflow.com/a/6048606/689318) very hacky solution which got rid of my errors. In brief, problem was the System.Data.Entity was not found, so I went and got a dll from a completely different project, and added that as a reference. This was my first deviation from the W3 lesson. – theLearningChan Aug 07 '13 at 22:03
  • Did you solve your problem? If not, try this : http://stackoverflow.com/questions/5762728/missing-scaffolding-options-in-asp-net-mvc-3-add-controller-dialog – WannaCSharp Aug 07 '13 at 22:15
  • I did not solve the solution yet. Checking link now. – theLearningChan Aug 07 '13 at 22:19
  • @WannaCSharp, Thank you for the link. The link however does not work because my NuGet package manager is too new. I might try installing the new MVC. – theLearningChan Aug 07 '13 at 22:30
  • @codingbiz, are you saying that tutorials on [asp.net/mvc](http://www.asp.net/mvc) are better than those on [w3schools.com](http://w3schools.com)? – theLearningChan Aug 08 '13 at 01:14
  • Yes. they are better. – WannaCSharp Aug 08 '13 at 01:44
  • @WannaCSharp, Thanks so much! Doing it now using VS Web Express 2012, and asp.net/mvc tutorials. – theLearningChan Aug 08 '13 at 02:30

1 Answers1

0

Im not sure if this will help, but you can try clearing your template cache, as show in this question.

If that doesn't work, I suggest reinstalling MVC entirely, its possible that something went screwy and you are missing some packages.

I suggest installing MVC through the Web Platform Installer (WPI), which can be found here. It should install everything you need.

Community
  • 1
  • 1
ElliotSchmelliot
  • 7,322
  • 4
  • 41
  • 64