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

June 19th, 2010, 05:53 PM
|
Authorized User
|
|
Join Date: Jun 2010
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
This is book great until Chapter 14. After that nothing works.
The tryouts from Chapter 14 pg . 481 on does not work. Help.
|

June 20th, 2010, 02:27 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|

June 20th, 2010, 07:29 PM
|
Authorized User
|
|
Join Date: Jun 2010
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

June 21st, 2010, 02:17 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|

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

June 22nd, 2010, 01:56 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Larry,
Good to hear it's working again and thanks for the follow up.
Cheers,
Imar
|

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

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

July 18th, 2010, 10:22 AM
|
Registered User
|
|
Join Date: Jul 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks, Imar. That might be the case. -Frank
|
|
 |
|