Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET for Visual Studio 2015
This is the forum to discuss the Wrox book Beginning ASP.NET for Visual Studio 2015 by William Penberthy; ISBN: 978-1-119-07742-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET for Visual Studio 2015 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 January 13th, 2017, 02:10 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2017
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Run the Apps failed after step at Figure 11.6

After I finished the step shown at Figure 11.6, I ran the application but a prompt shown that "An exception of type 'System.InvalidOperationException' occurred in EntityFramework.dll but was not handled in user code

Additional information: The model backing the 'RentMyWroxContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269)."

Anyone knows how to deal with it? Please help
 
Old March 11th, 2018, 07:41 PM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2018
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Step 3-4 page 375

The book suggests the table should be created automatically by running the application. That did not work for me. I had to execute a migration in order for the table to be created.

Go to tools --> NuGet Package Manager --> Package Manager Console. This will open a new pane (se figure 9-45 pg 305)

Type in the following commands:

Add-Migration "Adding Notifications"
Update-Database

This should create the table. You will need to put data into the table.

I hope this helps,
Linda




Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 11 - p.398 , Step 9 Tulsi BOOK: Beginning ASP.NET 4 : in C# and VB 1 April 24th, 2012 05:17 PM
CardLib logic, page 318, figure 11-7 Jaymond Flurrie BOOK: Beginning Visual C# 2010 4 April 5th, 2011 05:06 PM
SQL Error, p. 412, step 11 member4953 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 April 6th, 2009 03:11 PM
chapter 11 figure 11-7 relative positioning pelopito BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 2 November 29th, 2007 06:11 AM
Login Failed. Cant figure out why. ArnoldSanders SQL Server DTS 3 January 3rd, 2005 12:33 PM





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