 |
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
 | This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : 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
|
|
|
|
|

November 26th, 2015, 09:09 PM
|
|
Authorized User
|
|
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
|
|
Chapter 12: Creating Tables in the Table Designer
I opened the SSMS and logged in to the LocalDB SQL Server; but, the Solution Explorer in which SSMS launched was empty. It did not appear in the Chapter 12 website.
How do I connect it with the Chapter 12 website. I had Chapter 12 opened, but SSMS did not connect with it.
|
|

November 27th, 2015, 05:14 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
In SSMS you need the Object Explorer, not the Solution Explorer (which indeed will be empty).
I don't understand what you mean with:
>> It did not appear in the Chapter 12 website. How do I connect it with the Chapter 12 website. I had Chapter 12 opened, but SSMS did not connect with it.
Can you elaborate?
Cheers,
Imar
|
|

November 27th, 2015, 12:00 PM
|
|
Authorized User
|
|
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
|
|
Chapter 12: Creating the SQL Server Sample Database
I downloaded the code for Beginning ASP.NET 4.5.1: in C# and VB and have been using the code since Chapter 9. When I did the Creating the SQL Server Sample Database Try It Out, the Object Explorer opened with the Solution Explorer in Chapter 12.
Therefore, I thought that the databases created would go to the Databases folder that was created at the beginning of the Try it out.
Similarly, when the paths C:\BegASPNET\Site\App_Data were entered in SSMS, I thought the databases would be located in C:\BegASPNET\Site\App_Data for Chapter 12.
|
|

November 27th, 2015, 01:09 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
I still don't understand what you're saying. Is the issue resolved now?
Imar
|
|

November 27th, 2015, 02:47 PM
|
|
Authorized User
|
|
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
|
|
Chapter 12: Creating the SQL Server Sample Database
It does not work. I get the same error message as my other post except this time it is for "PlanetWrox" instead of "PlanetWroxTemp".
The way I have the folders set up is "C:\BegASPNET\Source\Chapter12
|
|

November 27th, 2015, 03:43 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
>> The way I have the folders set up is "C:\BegASPNET\Source\Chapter12
What does that mean? Is that where you build your site? This is where the source that comes with the book is located so this will likely lead to conflicts. The book has you use C:\BegASPNET\Site instead.
Cheers,
Imar
|
|

November 27th, 2015, 04:54 PM
|
|
Authorized User
|
|
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
|
|
Chapter 12: Creating Tables in the Table Designer
Actually, I stored the code as follows "OneDrive\BegASPNET". Inside BegASPNET, I put the Release, Resource, and Source folders. I thought by doing this I would be able to work on the exercises using my Surface Pro 3 when I was not at my desk.
Since Chapter 9, I would use BegASPNET as my initial website but would click on the chapter folder that I was working on. The chapter contents would become my new website. Most of the time I did not have to type in the bold faced code since it was already there.
|
|

November 27th, 2015, 05:02 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
You're not very specific about what you do so I can only guess; "but would click on the chapter folder that I was working on." is quite meaningless and doesn't tell me much.
As explained in the introduction of the book, you can't open C:\BegASPNET\Source and then browse to the chapter folders separately; especially the later chapters need to be in the root of the site, while this setup would lead to something like C:\localhost:12345/Chapter12/SomePage.aspx which will cause all kinds of issues. In general you should the Source folder as a reference and build your own site (and optionally copy files in from the Source folder).
Using OneDrive might work, but no guarantees. It should work OK for plain text files but you'll run into issues with SQL Server databases as you'll get file locks.
Cheers,
Imar
|
|

November 27th, 2015, 05:39 PM
|
|
Authorized User
|
|
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
|
|
Chapter 12: Creating Tables in the Table Designer
Thank you very much.
|
|
 |
|