MVC Music Store v3.0b

Rating:        Based on 43 ratings
Reviewed:  41 reviews
Downloads: 528079
Change Set: d9f25c5263ed
Released: Apr 13, 2011
Updated: May 11, 2011 by jongalloway
Dev status: Stable Help Icon

Recommended Download

Source Code
source code, 8877K, uploaded Apr 29, 2011 - 313426 downloads

Other Available Downloads

Documentation MVC Music Store - Tutorial - v3.0.pdf
documentation, 4877K, uploaded Apr 29, 2011 - 157893 downloads
Source Code
source code, 1445K, uploaded Apr 13, 2011 - 38798 downloads
Source Code
source code, 24781K, uploaded Apr 29, 2011 - 10133 downloads
Source Code
source code, 2899K, uploaded May 11, 2011 - 7829 downloads

Release Notes

This is a major update to the MVC Music Store tutorial for the ASP.NET MVC 3 Tools Update. This tutorial covers ASP.NET MVC 3, Entity Framework Code-First, SQL Server Compact, and demonstrates the Scaffolding features included in the Tools Update.

The main download,, contains everything you need to build the sample application, including
  • A detailed tutorial document in PDF format
  • Assets you will need to build the project, including images, a stylesheet, and sample data
  • The completed code for the project which shows you how your application will look when finished (this is helpful in case you get stuck)

You can also download the assets and PDF document separately if desired.

Required software

This tutorial and application are built for Visual Web Developer 2010 SP1 or Visual Studio 2010 SP1, running against SQL Server Compact. Instructions on installing the software requirements are included in the tutorial.

Database support

This tutorial is written for SQL Server Compact.

If you decide to use another database (e.g. SQL Server instance, SQL Server Express, etc.), some files have been included for your convenience, but they come with very limited support.
  • A T-SQL create script is available in the Assets folder in case you would prefer to use your own instance of SQL Server 2005 or 2008. The schema in the T-SQL script will only work with the 2.0 and later releases, as the tables have been renamed to pluralize them so they work better with Entity Framework.
  • MDF files are included for SQL Server Express support / attaching to a SQL Server instance.

However, the recommended path is to follow the tutorial and use SQL Compact if at all possible.

Reviews for this release

Thank you for this very useful and great tutorial!
by mygil on Jun 24, 2014 at 3:00 PM
it's great book for mvc beginners
by dev2oum on Mar 14, 2014 at 4:17 PM
Good Tutorial for a beginner. All the bugs can be easily overcome by searching the internet.
by mercer9258 on Feb 25, 2014 at 4:42 PM
Not for the beginner by any means, way too many prerequisites. The user is asked to run the application on times when the code has not even been given, let alone explained. Resulting in errors for the user with the user scratching his head wondering what is wrong. Try it by all means but not for the faint hearted. Running the supplied tutorial: JavaScript runtime error: 'jQuery' is undefined
by chrisdavies12 on Sep 5, 2013 at 10:50 AM
good example and neat explanation for beginners.
by dotnetmohan on Sep 2, 2013 at 9:34 AM
For people who are receiving the "Illegal Characters in Path" error, this might help: Check whether your connection string is accurate. I typed `Data Directory` instead of `DataDirectory` in the connection string. When I corrected that I was able to move forward.
by animeshb on Jul 2, 2013 at 6:28 AM
I didn't download the code, but followed the tutorial. Although I almost got stuck a few times on where to put the code, I eventually managed to put it in the right place. Only 2 errors surfaced; change to the jquery reference fixed it (to 1.5.1) change Edit in StoreManagerController to include id.
by RaySko on Jun 29, 2013 at 12:46 PM
Could someone send me working project without error please. I will be greatly appreciated for your help.
by TheSerg on Apr 10, 2013 at 7:28 PM
I realize this tutorial is old, but it also glosses over a lot of info; too much cutting and pasting with little explanation. It has not been updated to MVC4. I encountered errors in "Part 7: Membership and Authorization" that I could not resolve despite numerous searches so I stopped there. You much better off with this MVC4 tutorial:
by mattreisner on Mar 15, 2013 at 4:50 AM
I've been working in a lot of technologies so far and sheer curiosity drove me to MVC. It is extremely unintuitive, creates obstacles at every step and frankly, I think working in a notepad would have been faster. From the tutorial I expected explanations. Not a detailed click-by-click instruction of how to copy a file, but sth of the "behaviour behind the scenes" kind to find out how it works
by mememe on Feb 16, 2013 at 6:51 PM
@waasp - this tutorial is most definitely not for "Advanced" developers. If you cant follow this easy tutorial then you're not a developer. Great job, easy to follow, good sample site.
by jayGee on Nov 30, 2012 at 11:44 AM
good project
by tranlephong on Nov 30, 2012 at 3:02 AM
Please state somewhere in an obvious place that this tutorial is for ADVANCED developers. State the prerequisites for it clearly. At first the tutorial starts slowly and there are good explanations, but then from chapter 4 on most of the tutorial is limited to put that there, click here, etc. and almost no sensible explanations whatsoever are given. One more thing - the final result is VERY buggy.
by waasp on Nov 21, 2012 at 1:34 PM
Excellent tutorial! I like that the author touches several topics such as the MVC pattern, Entity Framework, Data Binding, Data Validation, Scaffolding, etc and yet he is able to build an app , (almost) from scratch, in just a couple of hours. Great job! thank you very much!
by ureyes84 on Oct 24, 2012 at 3:35 PM
Ajax section probably needs a rewrite to use Ajax.actionlink
by DraconPern on Sep 24, 2012 at 10:09 PM
@charlie303 and @LDumont, maybe you could contribute and write your own 'great' tutorial for beginners, and let us judge them, instead of you guys dissing this tutorial where the author spent a great deal of time putting together?
by janilane on Sep 19, 2012 at 11:08 PM
Difficult to put running following a constant flow. A lot of prerequisites without previous explanations, that made us spend more time searching what is wrong than learning to work with the pattern. This cause interruptions to the flow of learning and at the end you do not know if the problem is a bug in the tutorial or if you forgot to do something that was not explained.
by raguimaraes on Sep 19, 2012 at 3:26 PM
The only problem i faced is web site administration tool unable to connect to sql database... Please Give Steps on how to correct it
by Yashavantha on Jul 25, 2012 at 12:44 PM
Getting an exception after including SampleData.cs. in Model. Seems the file has some illegal characters. ArgumentException saying "Illegal characters in path." is displayed. Any inputs on, how this can be fixed would be highly appreciable. Very good example.. good learning so far.. Stuck with this exception. please advise. Thanks
by apreddy on Jul 18, 2012 at 5:39 PM
Very good example.. to start I am getting error using SampleData.cs The exception thrown is "Illegal characters in path." Can anybody help me regarding that?
by mizan713 on Jul 10, 2012 at 4:39 AM
Number One
by agansr on Jul 5, 2012 at 3:22 AM
Thanks for work hard! Your example is very good for me!
by quangdv1 on Jul 4, 2012 at 4:08 AM
Thx for a good tutorial! Overall, I am left with a feeling of certain parts begin extremely detailed (3 screens to show where to click when changing a shopping cart on the website?), in many others there was not enough detail to even start understanding: AJAX, DB (when to use Keys?), logic behind shopping cart.
by andipandi on Jun 18, 2012 at 9:46 PM
Great Example to get started wit MVC3
by jothivel on May 2, 2012 at 10:13 PM
This is the best and greatest tutorial ever written! Made me understand MVC3 in just a few hours! Thank you Jon!
by patrickmanoj on Mar 6, 2012 at 8:08 PM
Good way to start digging into MVC3. The tutorial was easy to follow and concise.
by gychoy on Feb 24, 2012 at 9:44 PM
The point of ASP.NET MVC was to make it easier for developers to Unit Test. However, this tutorial does not have any unit tests and thus is not helpful in understanding how to implement TDD. This discourages me to learn MVC as most of this tutorial can be implemented in WebForms as well. Please include Unit Testing and show how to go about with TDD.
by sassyboy on Feb 16, 2012 at 12:53 PM
I'm not going to say anything different from others :-) If you are looking for a way to start your programming with ASP.NET MVC 3 this is one of the best sample application and it comes with the tutorials. I downloaded the source code, build it and so far no major issues except some simple UI related items.
by PearlUser on Jan 28, 2012 at 5:58 PM
Excellent way to learn MVC if you follow the tutorial and not install the code and try and understand it. Follow the tutorial and you will learn a lot
by cjp on Jan 19, 2012 at 10:24 AM
Hard to get working straight out of the box. Lots of little problems here and there. Does not look very good. If you are trying to learn MVC you may start to doubt your abilities as a programmer if you think this project is a 'model' example of how to do MVC. It is not.
by charlie303 on Jan 18, 2012 at 12:52 AM
Thinks for sharing!
by lijianlan on Dec 15, 2011 at 5:46 AM
Error: Unable to find the requested .Net Framework Data Provider. It may not be installed. Solution: Edit web.config and comment out the whole <connectionStrings> section. This is a great example if you already know how to write MVC programs and would like some practice debugging errors.
by disaia on Nov 13, 2011 at 6:36 AM
Thanks for the sample,, it's give us a more clear in MVC3.. one step a head for beginner, although it's contain some error in code (Completed Solution) when I try to run it.. Regards Malik
by Malikul on Nov 8, 2011 at 8:49 AM
HOWARD_NYC@YAHOO.COM there is a lot more... no place to e-mail feedback ** failed to label snippets in chapters ** failed to link onto pages for each off the dozens of new terms, concepts, data objects, services, data structures, et al ** your 'completed' project failed to *compile* ** after fixing typo, 'completed' project crashed in different places when I tried to run ...more
by Howard__NYC on Oct 13, 2011 at 9:05 PM
I have finished this tutorial. Although it gives more explanations than book based on the same example project ("PROFESSIONAL ASP.NET MVC 3"), but still some chapters lack explanations. From chapter 8 to the end author doesn't give detailed explanation of written code, on the other hand first chapters spend to much time on simple things. This review is continued in my post on the forum.
by robert_pl on Sep 27, 2011 at 6:45 PM
A good starter snack for the long MVC journey we have to take...
by xeracon on Sep 20, 2011 at 4:02 AM
overall the quality is good, though the CSS file (site.css) isn't complementary to the project deployment
by a1771550KevinLiu on Sep 3, 2011 at 2:25 PM
@LDumond instead of just dissing the project can you offer some constructive criticism and suggest areas where it can be improved?
by cbruen1 on Aug 12, 2011 at 9:58 PM
You'd think after 3 versions they would have fixed most of the bad practices this demo uses, but alas, they are still there.
by LDumond on Jun 30, 2011 at 2:01 AM
Explains in far better detail and makes it much easier to understand than the book i purchased. Excellent Tutorial. Thanks!
by HockeyJustin on Jun 23, 2011 at 11:02 AM
Fantastic tutorial. I really appreciate the work to develop a feature complete tutorial using a real world example and to do so cleanly with out-of-the-box functionality. Many tutorials and even books rely heavily on 3rd party components and demonstrate DI which I don't think belong in a beginner tutorial. This tutorial goes the extra mile to teach the framework without muddying the waters.
by DustinHorne on Apr 21, 2011 at 8:00 PM