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"
Last edited by JackHerr; October 6th, 2011 at 12:04 PM.
Reason: additional info