Introduction to MVC 3

This sample will teach you the basics of building an ASP.NET MVC Web application using Microsoft Visual Web Developer 2010 Express. It is part of a tutorial series written by ScottGu, Scott Hanselman and Rick Anderson.

4.4 Star
87,807 times
Add to favorites
E-mail Twitter Digg Facebook
Sign in to ask a question

    1 Posts | Last post October 13, 2017
  • Can't see movies.sdf in app_data
    1 Posts | Last post August 17, 2014
    • Hi,
      I am trying out the mvc3 for I am able to run the project and do a CRUD. But I don't see the movies.sdf file in the app_data folder. Is there something I am missing?
  • Movies.sdf missing
    4 Posts | Last post November 13, 2013
      I'm up to this page in your tutorial where you say to check for Movies.sdf in App_Config, and it's not there. I've clicked "show all files", I've browsed to the folder in windows explorer, searched the computer, and it's nowhere.
      This is my connection string:
      <add name="MovieDBContext" connectionString="Data Source=|DataDirectory|Movies.sdf" providerName="System.Data.SqlServerCe.4.0"/>
      Everything's working fine, but I cant find and view the database. Any ideas?
    • Not, config directory, the data dir. You can verify that it's been created by looking in the App_Data folder. If you don't see the Movies.sdf file, click the Show All Files button in the Solution Explorer toolbar, click the Refresh button, and then expand the App_Data folder.
    • Movies.sdf is not in the zip file I downloaded.
    • I too
  • Hi, I am using Visual Studio Express 2012 for Web, and I tried to create this movie application. I gets the error while creating movie controller. Please help
    1 Posts | Last post June 25, 2013
    • ---------------------------
      Microsoft Visual Studio Express 2012 for Web
      Unable to retrieve metadata for 'MovieApp.Models.Movie'. Using the same DbCompiledModel to create contexts against different types of database servers is not supported. Instead, create a separate DbCompiledModel for each type of server being used.
  • Compatible with 4.5?
    3 Posts | Last post March 15, 2013
    • Hello, this sample is compatilble with the latest version framework 4.5?
    • It is compatible with 4.5, however, if you're using 4.5 you should follow one of the MVC 4 tutorials. (Visual Studio 2010) or Intro to ASP.NET MVC 4 Beta with Visual Studio 11 Beta ( )
    • we are awaiting the examples in mvc4
  • Problems
    1 Posts | Last post February 18, 2013
    • First problem. I downloaded the example but there was no file "movies.sdf" inside App_Data folder. 
      Second, I tried to create controller "MoviesController" but it showed up message: "Unable to retrive metadata for 'MvcMovie.Movie'. Using the same DbCompiledModel to create context against different types of database servers is not supported. Instead, create a separate DbCompiledModel for each type od server being used". I dont understand this suggestion. Please, help. 
  • the app can run but i cant find the movies.sdf in the app_data
    2 Posts | Last post February 05, 2013
    • i folow your tutorial to make this app,it can run,but.....whatever it run or stop ,i cant find the movies.sdf in the app_data.
      and i cant search this movies.sdf in the windows....
      wheres the movies.sdf
      windows 8 and vs2012UTI
    • oh!ah!
      i know why!!!
      because i make the MoviesController with ues the connectionstring,
      after i use the connectionstring and then make the MoviesController,
      the probler was solved
  • Movies.sdf not in App_Data
    1 Posts | Last post January 13, 2013
    • Hi,
      I'm on's-data-from-a-controller and I'm told that the Movies.sdf should be created automatically in the App_Data directory.
      It's not there.
      The app works, data is persisted.  I have commented out both the connection strings and it still works, although not after a re-boot.
      My connection strings are:
          <add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-MvcMovie-20130112235330;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-MvcMovie-20130112235330.mdf" />
          <add name="MovieDBContext" connectionString="Data Source=|DataDirectory|Movies.sdf" providerName="System.Data.SqlServerCe.4.0" />
      Any idea what's going on?  Where is the app persisting the data?
      Thanks in advance,
  • data
    1 Posts | Last post September 01, 2012
    • For those of us who arent ef fans, sure would be nice if you included sql scripts to populate database tables, such as are available for adventureworks and your other sample tables.
  • Accessing your Model's Data from a Controller Problem
    5 Posts | Last post July 13, 2012
    • Getting the following using what is in the tutorial.  The model type is invalid>  Please select an item from the list.  Alsp how can I tell that I am using .Net 4.  I have VS 2010 and Microsoft Visual Web Developer 2010 Express.  I have used the web installer for VWD 2010 and downloaded it for VS 2010 Ultimate.
      Thank you
    • Use the links provided at the beginning of the tutorial to install VWD/SP1 or Visual Studio 2010/SP1 and the Tools Update for ASP.NET MVC 3
    • I did everything stated that needed to be install and still when I try to put Movie (MvcMovie.Models) and MovieDBContext (MvcMovie.Models) that is when I get the invalid error.
      Thank you
    • I got the same thing.  What I did was make sure there was a space in those:
      Movie<space>(MvcMovie.Models) and MovieDBContext<space>(MvcMovie.Models)
    • I have the the same problem as you ladydee123 but what i did is I do the Build 
      at Debug menu first and then the Movie(MvcMove.Models) et al will now show up on the list.
      I know this kind of late reply ;-)
      But this could be helpful for others who had just recently encountered the problem.
1 - 10 of 21 Items