 |
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
|
|
|
|

July 11th, 2011, 07:17 AM
|
Registered User
|
|
Join Date: Jul 2011
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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
|

July 11th, 2011, 07:49 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
>> 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
|

July 11th, 2011, 08:03 AM
|
Registered User
|
|
Join Date: Jul 2011
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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
|

July 11th, 2011, 08:09 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
The Following User Says Thank You to Imar For This Useful Post:
|
|

July 11th, 2011, 08:26 AM
|
Registered User
|
|
Join Date: Jul 2011
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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
|

July 11th, 2011, 08:43 AM
|
Registered User
|
|
Join Date: Jul 2011
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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
|

July 11th, 2011, 08:44 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|

July 11th, 2011, 09:25 AM
|
Registered User
|
|
Join Date: Jul 2011
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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
|

July 11th, 2011, 09:45 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|
 |
|