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 June 19th, 2010, 05:53 PM
Authorized User
 
Join Date: Jun 2010
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default This is book great until Chapter 14. After that nothing works.

The tryouts from Chapter 14 pg . 481 on does not work. Help.
 
Old June 20th, 2010, 02:27 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,

I don't have mind reading skills, so if you want me to help you figure out what the problem is, you need to provide mmore information.

What does not work exactly? Where? Do you get an error? If so, which one and where? And are you following the instructions with your own code, or are you using the code that comes with the book as a starting point?

Help me help you and we'll figure thhis out....

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 June 20th, 2010, 07:29 PM
Authorized User
 
Join Date: Jun 2010
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default This is book great until Chapter 14. After that nothing works.

Pg 483 Step 9. Last paragraph says you get an error when you type PlanetWroxEntities. The fix does not work either way. Using VB code typing Imports PlanetWroxModel does not correct the error. The error says type not defined.
The VB code is Using myEntities As New PlanetWroxEntities()

None of error correction options work.

Please advise.

Please refer to [Incident: 100619-000080}

The two files in question are All.aspx and All.aspx.vb
 
Old June 21st, 2010, 02:17 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,

Are you sure you named the Entities correctly when adding them to the project? It's supposed to be called PlanetWrox, as per step 1 on page 481.

Also, do you get any other compilation errors? Is EF by itself working correctly? (E.g. can you follow the steps to add the model and tables and generate foreign keys for example?)

Since you're not providing that much information, it's difficult for me to see what's going on and help you out. If you want, send me a zipped version of the complete web site and database by e-mail. I'll take a look and let you know what the problem is. You can find my e-mail address in the "About the author" section at the beginning of the book.

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 June 21st, 2010, 10:29 PM
Authorized User
 
Join Date: Jun 2010
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sorry Imar I found the problem

I found that the database did not open when I opened the website. Then I opened the database after I started changing the code which caused more problems. Then tonight after much studying it dawned on me that maybe the database was not open when I opened the website. I am glad it worked. Now I can continue. Sorry for jumping the gun. Most of the ASP NET books gave me a hard time. I am finally making progress. Thanks for your patience. Larry
 
Old June 22nd, 2010, 01: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

Hi Larry,

Good to hear it's working again 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!
 
Old July 17th, 2010, 10:07 AM
Registered User
 
Join Date: Jul 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Could not load type 'System.Data.Entity.Design.AspNet.EntityDesignerBu ildProvider'

I was trying to run the examples of ch14 but received this error:
Could not load type 'System.Data.Entity.Design.AspNet.EntityDesignerBu ildProvider'.

Please help.

Frank
===========
Just found the cause of the problem. In the example's web.config file, the following two lines are missing
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
After added these two lines, it works fine.

Last edited by frankc; July 17th, 2010 at 10:45 AM.. Reason: found the answer
 
Old July 18th, 2010, 07:21 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 Frank,

Are you sure you're using the most recent code that you can download from this web site?

I submitted new code with these changes applied a few weeks ago. Something changed in VWD after my initial code for the book was submitted, so that code was slightly out of order. If you follow the instructions in the book you do get the corect code added for you automatically.

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 July 18th, 2010, 10:22 AM
Registered User
 
Join Date: Jul 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Smile

Thanks, Imar. That might be the case. -Frank





Similar Threads
Thread Thread Starter Forum Replies Last Post
This is book great until Chapter 14. After that nothing works. lstew452 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 June 19th, 2010 05:51 PM
this book is great abilify BOOK: Ivor Horton's Beginning Visual C++ 2008 ISBN: 978-0-470-22590-5 1 April 19th, 2010 08:23 AM
Great book...but rsearing BOOK: Beginning Access 2007 VBA ISBN: 978-0-470-04684-5 0 March 2nd, 2009 10:39 AM





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