Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5.1 > BOOK: Professional ASP.NET MVC 5
| Search | Today's Posts | Mark Forums Read
BOOK: Professional ASP.NET MVC 5
This is the forum to discuss the Wrox book Professional ASP.NET MVC 5 by Jon Galloway, Brad Wilson, K. Scott Allen, David Matson; ISBN: 978-1-118-79475-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET MVC 5 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
  #1 (permalink)  
Old December 16th, 2015, 04:04 PM
Registered User
Points: 23, Level: 1
Points: 23, Level: 1 Points: 23, Level: 1 Points: 23, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2015
Posts: 5
Thanks: 1
Thanked 1 Time in 1 Post
Default Chapter 4: I needed to add more code in Global.asax.cs

To all,

I went into the book on page 96 to add the suggested code to Global.asax.cs. I entered the following:

Code:
Database.
However, it did not recognize the Database class as existing. I then added the following code at the top of Global.asax.cs:

Code:
using System.Data.Entity
However, it did not recognize the existence of MusicStoreDbInitializer. I then added the following code at the top of Global.asax.cs:

Code:
using MvcMusicStore.Models
Once this was added, it recognized the MusicStoreDbInitilizer. I then got it to work.
The Following User Says Thank You to Glickt For This Useful Post:
VermeerC (September 30th, 2017)


Similar Threads
Thread Thread Starter Forum Replies Last Post
Global.asax has the wrong code Stephen Viney ASP.NET 2.0 Basics 4 March 9th, 2009 08:09 AM
using .cs in Global.asax oveisi ASP.NET 2.0 Basics 1 July 21st, 2008 08:46 AM
VB version Global.asax missing some code Scott663 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 March 29th, 2007 02:23 PM
In my Global asax file aDo I need the code below n kenn_rosie VS.NET 2002/2003 0 April 11th, 2006 12:17 AM





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