Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional ASP.NET MVC 3
This is the forum to discuss the Wrox book Professional ASP.NET MVC 3 by Jon Galloway, Phil Haack, Brad Wilson, K. Scott Allen; ISBN: 978-1-1180-7658-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET MVC 3 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
  #1 (permalink)  
Old October 6th, 2011, 11:53 AM
Authorized User
Points: 108, Level: 2
Points: 108, Level: 2 Points: 108, Level: 2 Points: 108, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Nov 2007
Location: North Salem, NY, USA.
Posts: 23
Thanks: 3
Thanked 0 Times in 0 Posts
Default ASP.Net Tutorial and This Book

If you follow the asp.net tutorial, you get a different route to what I hope will be the same end as strictly following the book. (I will return to the book after finishing tutorial, to the pages where the book diverged from the tutorial.) If you do the tutorial, you have to do quite a bit of work in part 7 (adding log in for StoreManager). Because it is an empty site, you have to copy code for Account Controller from the tutorial download as suggested. But be sure to change the namespace and the @model [name].models .[class] to the actual project name. Also, to get the aspnetdb for the provider in part 7 to work, you have to change the connection string and set the roleManager enabled="true" in the web config file. Not easy to find this out, it should be prominently featured somewhere.

You also have to add the web config lines from an MVC 3 internet project for the roles, membership, etc., in addition to the stuff above. Also, I use 2008 R2 Dev Ed, not the default SQLExpress, so you have to change the connection string to something like the following for it to work:

connectionString="data source=(local);Integrated Security=SSPI;database=aspnetdb"
providerName="System.Data.SqlClient" />

Last edited by JackHerr; October 6th, 2011 at 12:04 PM.. Reason: additional info
  #2 (permalink)  
Old December 9th, 2011, 09:30 PM
Wrox Author
Points: 165, Level: 3
Points: 165, Level: 3 Points: 165, Level: 3 Points: 165, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Oct 2006
Location: San Diego, CA, USA
Posts: 36
Thanks: 1
Thanked 5 Times in 5 Posts
Default Thanks

Thanks for writing that up, Jack. The basic MVC Music Store tutorial has you build the site up from an empty web application and add in the account / membership components, which starts simpler but results in more work later on.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial: How to use this book with Windows? Noone9 BOOK: Professional Assembly Language 1 December 20th, 2006 10:03 PM
ASP.Net 2.0 tutorial not working out so well. dclark ASP.NET 2.0 Basics 1 July 16th, 2006 07:11 PM

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