Wrox Programmer Forums
|
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 December 10th, 2014, 12:16 PM
Registered User
 
Join Date: Dec 2014
Posts: 10
Thanks: 2
Thanked 1 Time in 1 Post
Default Chapter 14 ADO Entity

I am using VS2013 to do this book. (I'm taking a course that requires this book, otherwise I'd use the newest book.)

I've done the first two Try it out exercises without issue.

I've gotten to the third one step 6 and for the life of me I can't figure out how to fix it. I get the metadata error and I try the fix front the "NOTE" in the book and it doesn't work either. My first time through I messed with the databases which made the entity mess up and I thought that was it.

I had a backup saved from the end of chapter 12, so started from there, worked all the way through chapter 13 and right back to the same point with the same error.

I have two connection strings: PlanetWroxEntities and PlanetWroxEntities1

I'm not sure why I have two, but neither works, I assume it is because I am using VS2013 and a newer version of .NET, can anyone else me around this step so I can get through it and the rest of the book?
 
Old December 10th, 2014, 12:48 PM
Registered User
 
Join Date: Dec 2014
Posts: 10
Thanks: 2
Thanked 1 Time in 1 Post
Default Update

I found a post in elsewhere in this site that says the control has to be installed in EF6 which I have done, but I still have the same error...
 
Old December 11th, 2014, 11:07 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,

Take a look at this post: Your Book and VS Versions

You may want to go for the 5.0 version of the EF framework. You may not be able to use the EntityDataSource control unless you configure your project to run under .NET 4.

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!
The Following User Says Thank You to Imar For This Useful Post:
Harpist (December 11th, 2014)
 
Old December 11th, 2014, 12:31 PM
Registered User
 
Join Date: Dec 2014
Posts: 10
Thanks: 2
Thanked 1 Time in 1 Post
Default VS2010

Hello Imar,

I was actually in a rush, though you answered quickly, I found I had access to VS2010, so I just uninstalled VS2013 and installed VS2010, and though I have read they can work side by side, I won't reinstall VS2013 until I finish this project, which should be soon.

After I have finished it for school, I will come back and try it again for personal reference. I have only used VS2010 for a couple hours, but I think I prefer VS2013 for actual usage.

I also have the 4.5 version of your book, which I was going to go through with VS2013, but I see you also have a 4.51 as well. I guess I may try that instead.

But the workarounds are also good to know as I am trying to increase my understanding of things. And thank you for writing the book and your prompt responses to questions. I appreciate know you are out there supporting your readers.
 
Old December 11th, 2014, 05:38 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yeah, you didn't have to uninstall 2013; they can indeed run side by side without a problem.

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 December 14th, 2014, 07:40 AM
Registered User
 
Join Date: Dec 2014
Posts: 10
Thanks: 2
Thanked 1 Time in 1 Post
Default VS2010 and VS2013

So now I get an error in VS2010 telling me it cannot open my database because it is a 706 and 2008 r2 is 655. The first time it happened I went to the downloaded resources and copied the file over. This fixed my problem for a while and I actually made it all the way through chapter 14.

At the beginning of chapter 15, I got the same error. I copied the file again and it went away, but now the error comes back with every exercise. Sometimes a couple of times in the same exercise.

Even though I don't have VS2013 installed, something keeps updating the version of my database as if I did.
 
Old December 14th, 2014, 08:18 AM
Registered User
 
Join Date: Dec 2014
Posts: 10
Thanks: 2
Thanked 1 Time in 1 Post
Default Chapter 14 ADO

Imar,

I wound up following your advice for daveharney and went back to VS2013, I removed all references to the original Entity and recreated using your suggestions and everything is in working order.

I hope it stays that way for the rest of the course. Thank you for your help so far, this process would have been far more frustrating without it.





Similar Threads
Thread Thread Starter Forum Replies Last Post
PLEASE HELP WITH THE ERROR IN Chapter 14 LINQ and the ADO.NET Entity Framework Tobi BOOK: Beginning ASP.NET 4 : in C# and VB 2 February 19th, 2014 08:03 AM
Chapter 14 - Using Data Controls with the Entity Framework nudirection BOOK: Beginning ASP.NET 4.5 : in C# and VB 3 July 11th, 2013 02:29 AM
Chapter 14: Entity Model Code WILL NOT WORK! pittfurg BOOK: Beginning ASP.NET 4 : in C# and VB 6 February 28th, 2013 07:48 AM
Chapter 14 - ADO.NET Entity Data Model Sean1980 BOOK: Beginning ASP.NET 4 : in C# and VB 3 July 15th, 2011 12:24 PM
Chapter 14 Linq and ado.net entity framework pandukal21 BOOK: Beginning ASP.NET 4 : in C# and VB 8 January 28th, 2011 05:19 AM





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