Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 27th, 2008, 10:28 AM
Authorized User
 
Join Date: Aug 2008
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 11 - Problem Opening Database

In chapter 11 on the "Try it Out" section on page 356, I have copied the .mdf and .ldf files from the Resource folders into the App_Data folder on the website that I just created for this exercise. When I try to open the database, I get the following error:

Generating user instances in SQL Server is disabled. Use sp_configure 'user instances enable' to generate user instances.

How do I accomplish this?

Thanks,
David

 
Old August 27th, 2008, 10:46 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,

What version of SQL Server are you using? The 2005 Express edition?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old August 27th, 2008, 10:50 AM
Authorized User
 
Join Date: Aug 2008
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, I am using the 2005 Express Edition that I tried to download along with VWD. I wondered at the time that I downloaded SQL if it had completed correctly. Do you suggest downloading SQL Server again?

 
Old August 27th, 2008, 10:56 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yes, I would try that if you're not sure it's installed correctly.

SQL Express should support user instances out of the box when you install it.

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old August 27th, 2008, 10:53 PM
Authorized User
 
Join Date: Aug 2008
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I went to the microsoft.com/express page to download SQL Server 2005 Express but all I found was 2008. 2008 is not compatible with VWD 2005. So I uninstalled VWD and tried installing VWD 2008 Express along with SQL Server 2008 Express. SQL Server 2008 Express always fails to install. So now I am at a point that I cannot continue in chapter 11 because I can't get SQL installed. I was really looking forward to working with databases.

 
Old August 28th, 2008, 01:22 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You can still download 2005 here: http://www.microsoft.com/sql/edition...s/default.mspx

Maybe you should uninstall the older versions first, reboot and then try again?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old August 28th, 2008, 10:45 AM
Authorized User
 
Join Date: Aug 2008
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar, thanks for you advice. I finally was able to successfully install SQL Server 2005. All is well now, I can display the database.

 
Old August 28th, 2008, 11:42 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Great. Glad it's working.

Have fun with the remaining 8 chapters.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old August 28th, 2008, 01:22 PM
Authorized User
 
Join Date: Aug 2008
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I spoke too soon. Actually after successfully installing SQL Server, the folders showed up in APP_Data, but I could not open any databases. I received the error "could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc".

 
Old August 28th, 2008, 04:34 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

That doesn't look right all. Are you sure you wiped out the previous installations before reinstalling?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with chapter 11 example luis.filipe BOOK: Expert SQL Server 2005 Integration Services ISBN: 978-0-470-13411-5 1 January 5th, 2008 05:29 PM
chapter 11 figure 11-7 relative positioning pelopito BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 2 November 29th, 2007 06:11 AM
Page 352 (Chapter 11) IDisposable Problem sosborne BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 1 August 18th, 2006 05:12 PM
problem with chapter 11 example... shepholland BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 October 10th, 2004 10:12 AM





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