Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Professional ASP.NET MVC 3
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 6th, 2011, 11:53 AM
Authorized User
Points: 96, Level: 1
Points: 96, Level: 1 Points: 96, Level: 1 Points: 96, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2007
Location: North Salem, NY, USA.
Posts: 22
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:

<addname="ApplicationServices"
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
Reply With Quote
  #2 (permalink)  
Old December 9th, 2011, 08:30 PM
Wrox Author
Points: 57, Level: 1
Points: 57, Level: 1 Points: 57, Level: 1 Points: 57, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2006
Location: , , .
Posts: 15
Thanks: 1
Thanked 1 Time in 1 Post
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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 09: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



All times are GMT -4. The time now is 03:13 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.