Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
|
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 September 3rd, 2011, 09:50 AM
Friend of Wrox
 
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
Default Problem by openning database that added to App_Data[Page 407]

Hi, There
I add the PlanetWrox.mdf database to my vs2010 App_Data folder .I check Security tab and i have full control over this folder.But When I try to Open Database( By Double-click on it) I get following message :
Connections To SQL server database files(.mdf) require SQL server 2005 express or SQL server 2008 express to be installed and running on the local computer.
I check in services that my sql server express instance[SQLEXPRESS] is running and check both mdf file( 2005 and 2008).
Really i don't know what i must do.
 
Old September 3rd, 2011, 06:14 PM
Registered User
 
Join Date: Aug 2011
Posts: 13
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by morteza View Post
Hi, There
I add the PlanetWrox.mdf database to my vs2010 App_Data folder .I check Security tab and i have full control over this folder.But When I try to Open Database( By Double-click on it) I get following message :
Connections To SQL server database files(.mdf) require SQL server 2005 express or SQL server 2008 express to be installed and running on the local computer.
I don't think this error message comes up if the problem is permissions. But I could be wrong about that.
Quote:
I check in services that my sql server express instance[SQLEXPRESS] is running and check both mdf file( 2005 and 2008).
Really i don't know what i must do.
You will get that error message if the service isn't started or the instance you're trying to connect to isn't running. You'll also get it if you installed a full version of SQL Server 2008 instead of the Express version. Neither of those look like they apply to you.

IN VWD, go to the Tools menu and select Options.... Then locate the Database Tools heading and expand it. Then click on Data Connections.

The value in the box should contain the name of your SQL Server Express instance (SQLEXPRESS). If the name appears to be correct you can try deleteing it and leaving the box blank: this tells VWD to use your default instance, which is handy because you don't need to know the name of the instance in order to use it.

Last edited by mmmason; September 3rd, 2011 at 06:27 PM.. Reason: Spelling error
 
Old September 4th, 2011, 12:58 AM
Friend of Wrox
 
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
Default

So i check this it's started.
 
Old September 4th, 2011, 06:26 PM
Registered User
 
Join Date: Sep 2011
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

You tried:

1) Restarting VWD?
2) Restarting your PC.

I had this issue and once I'd done 1 of the above options (can't remember which one), it worked.
 
Old September 8th, 2011, 10:43 AM
Friend of Wrox
 
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
Default

Yes but still i have that problem.
 
Old September 8th, 2011, 11: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

Can you try the following?

1. Log into your SQL Server using SQL Server Management Studio

2. Create a new query, enter the following command

SELECT @@version

and hit F5 to execute it.

What does it tell you there?

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 September 8th, 2011, 04:21 PM
Friend of Wrox
 
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
Default

Hi Imar
It tell me following text :
Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64) Apr 2 2010 15:48:46 Copyright (c) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7600: )

Thank's
 
Old September 8th, 2011, 04:33 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's not the Express edition so the error message is correct.

Did you follow the instructions in Chapter 1 on installing VWD and SQL Server Express?

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 September 8th, 2011, 04:40 PM
Friend of Wrox
 
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
Default

However, in my services i see that sqlexpress instance is running.
I use this instance for another scenario and its work's fine . Is there any back up of database that i restore it ?
Thanks.
 
Old September 8th, 2011, 04:53 PM
Friend of Wrox
 
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
Default

I have another irrelevant question:
Why You and another users have level and activity percentage bar but i have not?
It is really problem for me.
Thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Analytics code added to notification mail containing a full HTML page Imar Forum and Wrox.com Feedback 2 January 19th, 2010 03:34 PM
Error on the page 407. Grace BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 2 July 12th, 2009 02:52 PM
Chapter11 The SQL database file cannot be created in App_Data folder clark BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 7 January 15th, 2009 10:29 AM
problem openning huge xls file helmekki Excel VBA 3 October 5th, 2004 04:43 AM
Control not added to code page shmacgregor VS.NET 2002/2003 2 March 26th, 2004 05:49 PM





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