Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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
 
Old August 26th, 2011, 04:20 PM
Registered User
 
Join Date: Aug 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default Chapter 16, Page 584

Chapter 16, page 584, Step 11: My Login button does not change to Logout. The text says that the button will change and points to Figure 16-5 which shows Login not Logout. Also, the code for Chap 16 crashes when I create a user account. Any thoughts?

This is an excellent book. Very well-written and thorough.
 
Old August 26th, 2011, 04:47 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Sounds like your database or site hasn't been set up correctly. Did you try the Web Site Administration tool?

Can you describe your setup (location of the aspnetdb.mdf database, code in your web.config and so on)?

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old August 26th, 2011, 04:52 PM
Registered User
 
Join Date: Aug 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Imar,

Thanks for the super fast reply especially on a Friday.

In the past whenever I had a problem with an exercise, your chapter solutions ran perfectly.

Here are the contents of the web.config:

<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<authentication mode="Forms" />
<pages theme="Monochrome" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
<compilation debug="false" targetFramework="4.0"/>

</system.web>
</configuration>

Best,

Jonathan
 
Old August 26th, 2011, 05:17 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Jonathan,

Right, so this might be a database issue? Is there a file called aspnetdb.mdf in your App_Data folder? Do you have a SQL Server Express instance installed called .\SqlExpress? And did you try the Website Administration Tool?

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old August 26th, 2011, 05:53 PM
Registered User
 
Join Date: Aug 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Imar,

Yes, I have the database file and the correct instance of SQL in place. I do not have web admin tools, perhaps because I am running the express version.

Thanks for your help. I did not expect a reply from the author. I will do some more checking locally.

Really a very good book. Very thoughtful in terms of how you present material to a beginner.

Best,

Jonathan
 
Old August 26th, 2011, 05:56 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
I do not have web admin tools, perhaps because I am running the express version.
The book was written against Visual Web Developer Express, so you should have the same tools as I did while writing. Check pages 604 and further for more info on the WSAT.

Also, check the security settings of the App_Data folder. To see if it's a security issue, temporarily grant full control to the Everyone account.

Quote:
Really a very good book. Very thoughtful in terms of how you present material to a beginner.
Thank you! Spread the word, Spread the word! ;-)

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
JHubschman (August 26th, 2011)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 16 Page 558 runner1181 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 February 9th, 2010 03:18 AM
Chapter 16 Page 576 Question jsymons BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 September 25th, 2009 03:20 AM
Chapter 16 Try It Out Page 498 Step 7 workib BOOK: Beginning Microsoft Visual C# 2008 ISBN: 978-0-470-19135-4 1 October 9th, 2008 08:22 PM
Chapter 1 Page 16 - Try It Out bradnerdhss BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 January 31st, 2006 02:11 PM





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