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 November 24th, 2009, 12:35 PM
Authorized User
 
Join Date: Nov 2009
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
Default Ch 11 and SQL Server Express

When I double click on the mdb in solutions explorer I get a message saying that SQL Server Express 2005 needs to be running. The message also gave a link to installing Express so I did so, except that the version is now 2008. I installed it and still get the same error message.

I checked and the server is running. Appendix B said to enable Named Pipes and TCP IP, in the configuration mgr and restart server. Did this, same error.

Am I on the right track? Not sure what is next. I am running the server on the same PC as VWD.

I looked for older posts dealing with this but could not find any.

The exact error message is Connection to SQL Server files (*.mdf) requires SQL Server Express 2005 to function properly.

Last edited by glenng; November 24th, 2009 at 02:21 PM..
 
Old November 24th, 2009, 04:16 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,

What's the name of your SQL Server Express instance? Is that name consistent with what's configured in VWD?

http://aspadvice.com/blogs/name/arch...e-Project.aspx

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 November 24th, 2009, 05:14 PM
Authorized User
 
Join Date: Nov 2009
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thank you. This is very weird. I entered SQLEXPRESS as the instance name and double clicked PlanetWrox.mdf and got the same error. So I went to Tools->Connect To Database and browsed to the PlanetWrox.mdf file and it connected. It added it to the project as PlanetWrox.mdf1. I still cannot connect to the original by double clicking, but can work with the one added as mdf1. Not sure what's going on, but it looks like I may at least have a workaround for now.

I am using a 64bit Win 7 computer. Not sure if that is a factor???
 
Old November 24th, 2009, 07:11 PM
Authorized User
 
Join Date: Nov 2009
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
Default

FYI in case anyone else runs into this:

After chasing this all day, I found this MS link:
http://support.microsoft.com/kb/957944

FIX: Error message when you connect to a 64-bit instance of SQL Server Express 2008 by using Visual Studio 2008 Service Pack 1 (SP1): "Connections to SQL Server files (*.mdf) require SQL Server Express 2005 to function properly"

It says you have to obtain a hotfix from MS customer support or install a 32 bit version of SQL. The 64 bit version was installed as part of VWD so not sure yet how I will do this.

Here is a direct number of MS support 1-800-936-4900.

Last edited by glenng; November 24th, 2009 at 07:30 PM..
 
Old November 25th, 2009, 03:36 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 could also try this, as per the article you posted:
Quote:
To work around this problem, uninstall the 64-bit version of SQL Server Express 2008, and then install the 32-bit version of SQL Server Express 2008.
From the perspective of the Planet Wrox sample application, there isn't any benefit to run the 64 bit edition.

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 November 27th, 2009, 04:50 PM
Authorized User
 
Join Date: Nov 2009
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks Imar. I tried that and continued to get errors. I uninstalled everything and started over, same thing. Finally, I reinstalled the default system, which is 64bit automatically, and applied the Hotfix when it was finally emailed to me. Like magic, all is fine now.
The Following User Says Thank You to glenng For This Useful Post:
Imar (November 28th, 2009)
 
Old November 28th, 2009, 05:39 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Excellent, glad to hear it's working, and thanks for the follow up.

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
SQL Express & Ch 20 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 1 August 2nd, 2007 05:16 PM
SQL Express OK in Ch 22 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 August 4th, 2006 01:34 PM
SQL Express installation; Page 931; Ch 19 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 1 July 31st, 2006 12:13 AM
Chp10, 11 sql server express management studio bruhnf BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 March 13th, 2006 05:00 PM
Accessing a SQL Server Express DB thru VB Express djelavic SQL Server 2005 2 February 21st, 2006 07:53 PM





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