Wrox Programmer Forums
|
BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950
This is the forum to discuss the Wrox book ASP.NET MVC Website Programming Problem Design Solution by Nicholas Berardi, Al Katawazi, and Marco Bellinaso; ISBN: 9780470410950
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 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 June 21st, 2009, 02:01 PM
Registered User
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Initial Code Build Errors

Hi I tried to compile the code after creating a SQL DB on my local machine (not Express).

When i run the app i get the error.

The model item passed into the dictionary is of type 'TheBeerHouse.Models.Pagination`1[TheBeerHouse.Models.Article]' but this dictionary requires a model item of type 'TheBeerHouse.Models.Poll'.

And TheBeerHouse.Models.Poll does not exist in the solution. Please suggest.

Daniel
 
Old June 22nd, 2009, 03:34 AM
nberardi's Avatar
Wrox Author
 
Join Date: Aug 2008
Posts: 102
Thanks: 1
Thanked 16 Times in 16 Posts
Send a message via AIM to nberardi
Default

Please get the latest from CodePlex. You seem to be missing some files.
__________________
Check out my blog at: http://www.coderjournal.com
 
Old June 22nd, 2009, 12:36 PM
Registered User
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Same error

Quote:
Originally Posted by nberardi View Post
Please get the latest from CodePlex. You seem to be missing some files.
I tried the code from CodePlex and still get the same error. I have SQL 2005 installed on my machine. How can i make it work with SQL 2005 Developer Edition.

I created the DB using the scripts provided in the original source in the book.

So iam not using SQL Express Connection.

With the SQL express I get the following error.

The database 'C:\DATA\EBOOKS\ASP.NET MVC 1.0 PROBLEM-DESIGN-SOLUTION\THEBEERHOUSE_MVC\THEBEERHOUSE\APP_DATA\TH EBEERHOUSE.MDF' cannot be opened because it is version 655. This server supports version 612 and earlier. A downgrade path is not supported.
Could not open new database 'C:\DATA\EBOOKS\ASP.NET MVC 1.0 PROBLEM-DESIGN-SOLUTION\THEBEERHOUSE_MVC\THEBEERHOUSE\APP_DATA\TH EBEERHOUSE.MDF'. CREATE DATABASE is aborted.
An attempt to attach an auto-named database for file C:\Data\eBooks\ASP.NET MVC 1.0 Problem-Design-Solution\TheBeerHouse_MVC\TheBeerHouse\App_Data\Th eBeerHouse.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
 
Old June 29th, 2009, 11:17 AM
Authorized User
 
Join Date: Dec 2008
Posts: 29
Thanks: 1
Thanked 5 Times in 5 Posts
Default

Could you show us the connection string you used?
 
Old July 8th, 2009, 10:46 AM
nberardi's Avatar
Wrox Author
 
Join Date: Aug 2008
Posts: 102
Thanks: 1
Thanked 16 Times in 16 Posts
Send a message via AIM to nberardi
Default

You need to use SQL Server 2008 Express, that is the min requirement for the book.
__________________
Check out my blog at: http://www.coderjournal.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird Build Errors Aaron Edwards ASP.NET 2.0 Basics 1 November 2nd, 2007 03:04 AM
Build Errors..Not Sure What to Do?? jazzcatone ASP.NET 2.0 Basics 2 March 8th, 2007 02:24 PM
VC++ Build Errors, Help!!!!!!!!! gothicpurple Visual C++ 0 August 29th, 2006 06:35 PM
build errors in vc++ angel188 Visual C++ 0 June 6th, 2006 06:41 AM
Please Help! Build errors motsam BOOK: ASP.NET Website Programming Problem-Design-Solution 2 February 29th, 2004 10:37 AM





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