Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 21st, 2009, 03: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
  #2 (permalink)  
Old June 22nd, 2009, 04:34 AM
nberardi's Avatar
Wrox Author
 
Join Date: Aug 2008
Location: Phoenixville, PA, USA
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
  #3 (permalink)  
Old June 22nd, 2009, 01: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.
  #4 (permalink)  
Old June 29th, 2009, 12:17 PM
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?
  #5 (permalink)  
Old July 8th, 2009, 11:46 AM
nberardi's Avatar
Wrox Author
 
Join Date: Aug 2008
Location: Phoenixville, PA, USA
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
 


Thread Tools
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
Weird Build Errors Aaron Edwards ASP.NET 2.0 Basics 1 November 2nd, 2007 04: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 07:35 PM
build errors in vc++ angel188 Visual C++ 0 June 6th, 2006 07:41 AM
Please Help! Build errors motsam BOOK: ASP.NET Website Programming Problem-Design-Solution 2 February 29th, 2004 10:37 AM



All times are GMT -4. The time now is 12:38 AM.


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