Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : 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 April 12th, 2015, 11:22 AM
Authorized User
 
Join Date: Jan 2015
Posts: 16
Thanks: 5
Thanked 0 Times in 0 Posts
Default Chapter 16 - Newly Added Database?

Greetings,

I am making another website as a demo and practice, I followed the same steps in chapter 16, all successful.
But I left the connection added by the microsoft providers (that I install in the manager condole prompt)
It is called "Default connection" and the connection string shown is:
connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=aspnet-myPersonalWebsite-20150412145639;Integrated Security=SSPI"


But where is the newly added database??!! Where can I find the users and memberships and the rest? It is not included in my current connection that has the following properties in web.config:
<add name="PersonalWebDBEntities" connectionString="metadata=res://*/App_Code.personalWebsiteModel.csdl|res://*/App_Code.personalWebsiteModel.ssdl|res://*/App_Code.personalWebsiteModel.msl;provider=System. Data.SqlClient;provider connection string=&quot;data source=.\SQLEXPRESS;attachdbfilename=|DataDirector y|\PersonalWebDB.mdf;integrated security=True;user instance=True;multipleactiveresultsets=True;App=En tityFramework&quot;" providerName="System.Data.EntityClient" />

Thanks...
 
Old April 12th, 2015, 11:27 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It depends a bit on your machine and setup, but it's likely under C:\Users\YourUserName

If not, use Windows search to find the file by its name.

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 April 12th, 2015, 11:43 AM
Authorized User
 
Join Date: Jan 2015
Posts: 16
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Thanks,

But what is its name? I tried the number 20150412145639 but no use, I tried default connection but also couldn't find it.
Where is it?!?!
 
Old April 12th, 2015, 04:11 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Try searching for myPersonalWebsite-20150412145639 instead.

Also, make sure you run the site and that the database has been created; it may not be created until you view pages that access the database.

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
Chapter 16: Login tries to create database rklein99 BOOK: Beginning ASP.NET 4.5 : in C# and VB 3 July 8th, 2013 05:25 PM
Chapter 16 'Register' does not write to database dako3256 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 May 19th, 2010 05:02 AM
Chapter 16 Accessing Database Bruce A Smith BOOK: Beginning Microsoft Visual Basic 2008 ISBN: 978-0-470-19134-7 7 July 12th, 2009 01:19 PM
Placing existing control in newly added container morbidreich Beginning VB 6 1 December 27th, 2007 11:14 PM





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