Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 11th, 2011, 07:17 AM
Registered User
 
Join Date: Jul 2011
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default PlanetWrox Database tables will not open in Database Explorer

Hi All
I am working my way through Beginning Asp.Net 4 (which I think is a brilliant book) but have now hit a problem regarding Chapter 12.

I cannot open up the PlanetWrox database in Database Explorer, even though the Connection is open. I have some programming knowledge with Databases and have never encountered this problem before.

Surely as the Test Connection has succeeded, I should be able to access the Tables.

Whenever I try to expand the PlanetWrox database in Database Explorer, nothing happens. I tested a different Database and that was fine.

Does anyone have any ideas?

Regards
Wednesday
Reply With Quote
  #2 (permalink)  
Old July 11th, 2011, 07:49 AM
Imar's Avatar
Wrox Author
Points: 71,558, Level: 100
Points: 71,558, Level: 100 Points: 71,558, Level: 100 Points: 71,558, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,000
Thanks: 79
Thanked 1,573 Times in 1,550 Posts
Default

>> which I think is a brilliant book

Thank you!

Could it be that your SQL Express is not SQL Server 2008 or later? Or maybe you're having the same issue as described here: Chapter 12 Can't access PlanetWrox.mdf

If that doesn't help, please provide a bit more information (exact version and type of SQL Server, the way you access the database and so on).

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!
Reply With Quote
  #3 (permalink)  
Old July 11th, 2011, 08:03 AM
Registered User
 
Join Date: Jul 2011
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default Problem with Opening Planet Wrox

Hi Imar

Wow you have replied in person - I wasn't expecting that!

My edition of Sql Server is 2008 Express. My problem is not the same as the link you suggested (I had already looked at that).

I have connected exactly as you suggested. The Test Connection succeeds and the Database opens. However, the arrow to expand the Database does nothing.

I then tried to connect to your original Database from the Source code files. Again, the Test Connection succeeds, but yet again clicking the arrow to expand the Database to access the Tables does nothing. No error message, just doesn't do anything.
Just in case, there is something wierd with my system, I then connected to the Northwind Database. The arrow expands and opens the Tables for this Database.

The only other thing is I checked the Security permissions. All permissions are ticked, but are greyed out.

Regards
Wednesday
Reply With Quote
  #4 (permalink)  
Old July 11th, 2011, 08:09 AM
Imar's Avatar
Wrox Author
Points: 71,558, Level: 100
Points: 71,558, Level: 100 Points: 71,558, Level: 100 Points: 71,558, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,000
Thanks: 79
Thanked 1,573 Times in 1,550 Posts
Default

Quote:
All permissions are ticked, but are greyed out.

That may indicate they have been set at a higher level (e.g. a parent folder)

Just for a test, can you add the Everyone account and give it full control to the site's App_Data folder?

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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
wednesday61 (July 11th, 2011)
  #5 (permalink)  
Old July 11th, 2011, 08:26 AM
Registered User
 
Join Date: Jul 2011
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Imar

I tried as suggested - hasn't worked.
A couple of other things I have noticed - I am able to open the Northwind Database tables, whether or not the Northwind Database is connected - so maybe my problem is not a connection one??

I have now noticed a Log file under the PlanetWrox Database.

It says the following:-
'There is no Editor available for C\Users\Wednesday\Documents\BegAspNet\Site\Databas eTest\App_Data\PlanetWrox_Log.ldf
Make sure the application for the file type ldf is installed.

Is this relevant?

Regards
Wednesday
Reply With Quote
  #6 (permalink)  
Old July 11th, 2011, 08:43 AM
Registered User
 
Join Date: Jul 2011
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default Problem with PlanetWrox Database

Hi Imar

I came out completely and went back in to the Web site. The connection took longer this time and it has worked!!! I can now see all the tables.
Perhaps when I changed the permissions, I should have gone back in again??

Anyway, thank you very much for your prompthelp.

Can you recommend a book to tackle on Asp Net which would be a good (intermediate) follow on from this one.

Regards
Wednesday
Reply With Quote
  #7 (permalink)  
Old July 11th, 2011, 08:44 AM
Imar's Avatar
Wrox Author
Points: 71,558, Level: 100
Points: 71,558, Level: 100 Points: 71,558, Level: 100 Points: 71,558, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,000
Thanks: 79
Thanked 1,573 Times in 1,550 Posts
Default

The Log file is created by SQL Server and is used to keep track of changes in the database (for transactions, among other things)

Can you specifiy the exact versions of your software (Windows, Visual Studio, SQL Server) and so on. Help | ABout usually tells you more. Did you apply service packs for Visual Studio?

And are you really sure that .\SqlExpress is Server 2008? How did you check?

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!
Reply With Quote
  #8 (permalink)  
Old July 11th, 2011, 09:25 AM
Registered User
 
Join Date: Jul 2011
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Imar

This has obviously crossed with my most recent reply, which confirms that all is now working.

I suspect your suggestion re the Security Permissions was the answer - I think I should have then closed the Project and reopened it, which I didn't do.
I tried this subsequently and all is working.

A big thank you for your help (and brilliant book).
Regards
Wednesday
Reply With Quote
  #9 (permalink)  
Old July 11th, 2011, 09:45 AM
Imar's Avatar
Wrox Author
Points: 71,558, Level: 100
Points: 71,558, Level: 100 Points: 71,558, Level: 100 Points: 71,558, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,000
Thanks: 79
Thanked 1,573 Times in 1,550 Posts
Default

Quote:
This has obviously crossed with my most recent reply
Yeah, looks like it.... ;-)

Quote:
I tried this subsequently and all is working.
Great!
Quote:
A big thank you for your help (and brilliant book).
Thank you! Spread the word, spread the word. Tell all your friends.... ;-)

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!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get all the tables from a database rakeshgv SQL Server 2000 4 December 1st, 2006 07:33 AM
sending tables to another database howardrsh BOOK: Beginning Access VBA 1 October 5th, 2006 06:49 PM
Populating database tables mespejo Beginning PHP 9 November 30th, 2004 10:02 AM
Attempted to open a database that is already open person747 Access 10 September 3rd, 2004 04:31 PM
Cannot add database connection in server explorer bbhill VS.NET 2002/2003 1 June 30th, 2003 09:14 PM



All times are GMT -4. The time now is 07:55 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.