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 October 27th, 2010, 07:20 AM
Registered User
 
Join Date: Oct 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Using basic login controls

I have been following the Try It Out in CH16 pages 583,4 but when I try to sign up (step 10) I get the following error msg:

"The connection name 'LocalSqlServer' was not found in the applications
configuration or the connection string is empty."

I have googled this error and found several responses but no clear solution. I bielieve I have to get the connection string correct but my current one has been working perfectly so far.

John
 
Old October 27th, 2010, 08:50 AM
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,

By default, when you use a Login control, ASP.NET creates a database automatically based on this LocalSqlServer connection string (which is defined in the machine.config). Maybe you cleared it out using a <clear /> element in your web.config? Can you show us your code for that file?

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:
jgtech (October 27th, 2010)
 
Old October 27th, 2010, 09:41 PM
Registered User
 
Join Date: Oct 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default solved

Thank you, you have solved this problem for me. I just removed the <clear/>.
I am enjoying working through your book.
John
 
Old October 28th, 2010, 02:38 AM
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 am enjoying working through your book.
Good to hear that. Have fun with the rest of the chapters.

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
The Login Controls HovhannesGo BOOK: Beginning ASP.NET 4 : in C# and VB 3 September 17th, 2010 07:59 AM
Login controls : Way to customize them ? Rushino BOOK: Beginning ASP.NET 4 : in C# and VB 2 May 15th, 2010 01:07 PM
Login Controls mashype ASP.NET 3.5 Basics 4 January 26th, 2009 03:07 PM
Basic Login Form agleave VB How-To 4 February 26th, 2007 11:59 AM
Login to web portal from visual basic form Raghavendra_Mudugal VB How-To 0 December 2nd, 2004 03:10 AM





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