Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5.1 > BOOK: Professional ASP.NET MVC 5
Password Reminder
Register
| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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.
Reply With Quote
The Following User Says Thank You to Glickt For This Useful Post:
VermeerC (September 30th, 2017)
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:17 AM.


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