Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5 > BOOK: Beginning ASP.NET 4.5 : in C# and VB
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : 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 March 10th, 2015, 05:24 AM
Registered User
Points: 27, Level: 1
Points: 27, Level: 1 Points: 27, Level: 1 Points: 27, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2015
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
Default Beginning ASP.NET 4.5: in C# and VB - Chapter 14 - Try it Out Page518

Hi,

I tried out the Try It Out - A Simple EntityDataSource Application (on page 518 to 522), got stuck on step 6 to configure the entity data source, as mentioned in the Note to step 6, I get an error about incorrect metadata, tried the steps recommended in the note in vain too. May I know how could I overcome this problem? thanks a lot in advance. the following is the code:

<%@ Page Title="Create New Photo Album" Language="VB" MasterPageFile="~/MasterPages/Frontend.master" AutoEventWireup="false" CodeFile="NewPhotoAlbum.aspx.vb" Inherits="_NewPhotoAlbum" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
<asp:DetailsView ID="DetailsView1" runat="server" DataSourceID="EntityDataSource1" Height="50px" Width="125px" AllowPaging="True">
<Fields>
<asp:CommandField ShowInsertButton="True" />
</Fields>
</asp:DetailsView>
<asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=PlanetWroxEntities" DefaultContainerName="PlanetWroxEntities" EntitySetName="PhotoAlbums" OnInserted="EntityDataSource1_Inserted">

</asp:EntityDataSource>
</asp:Content>

Last edited by hclee5; March 10th, 2015 at 05:28 AM..
 
Old March 11th, 2015, 11:12 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Which version of Visual Studio are you using?

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:
hclee5 (March 12th, 2015)
 
Old March 12th, 2015, 08:39 PM
Registered User
Points: 27, Level: 1
Points: 27, Level: 1 Points: 27, Level: 1 Points: 27, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2015
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Hi Imar,

I am using Visual Studio 2013 Express For Web. The book actually recommended using 2012 version. For information, after I posted the above thread, I actually manage to complete the Try it Out exercise on Page518 by modifying the code in the markup view by following the sample code provided. So now, I try to work on the TRY IT OUT - Inserting and deleting data with ListView Control on Page 526, get stuck on step 2 to add the PlanetWroxEntites to the list view control, the same Meta error pop up again.

thanks for the help in advance (btw, I really enjoy working on your book on ASP.NET)

Last edited by hclee5; March 12th, 2015 at 08:48 PM..
 
Old March 20th, 2015, 12:47 AM
Registered User
Points: 31, Level: 1
Points: 31, Level: 1 Points: 31, Level: 1 Points: 31, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2015
Posts: 5
Thanks: 0
Thanked 2 Times in 2 Posts
Default

It is currently a known issue.
https://connect.microsoft.com/Visual...ityframework-6

As a work around, you can change the 2012 to 2008 in the edmx file. You need to open it in notepad.

http://breakthatdown.blogspot.com/20...rol-error.html
The Following User Says Thank You to oceanjams For This Useful Post:
hclee5 (March 20th, 2015)
 
Old March 20th, 2015, 12:14 PM
Registered User
Points: 27, Level: 1
Points: 27, Level: 1 Points: 27, Level: 1 Points: 27, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2015
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
Default

HI oceanjams,

Thanks for highlighting this issue! I should have done more search before posting the thread! . Manage to get around with the suggested work around tips.

Many many thanks!




Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 14 ASP.Net 4.0 fredfenk BOOK: Beginning ASP.NET 4 : in C# and VB 0 April 8th, 2011 01:07 PM
Can'T find code to Beginning Asp.net using VB.NET darruler All Other Wrox Books 1 August 12th, 2004 05:04 PM
Beginning VB.Net Chapter 16 tjs206 BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 February 10th, 2004 02:28 PM
Help 'beginning asp.net using vb.net' source code jkmf Wrox Book Feedback 1 January 18th, 2004 08:09 AM
Beginning ASP.Net Databases Using VB.Net ISBN 6195 tlamazares SQL Server ASP 1 December 15th, 2003 01:28 PM





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