p2p.wrox.com 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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 21st, 2009, 03:01 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old June 22nd, 2009, 04:34 AM
nberardi's Avatar
Wrox Author
Points: 315, Level: 6
Points: 315, Level: 6 Points: 315, Level: 6 Points: 315, Level: 6
Activity: 14%
Activity: 14% Activity: 14% Activity: 14%
 
Join Date: Aug 2008
Location: Phoenixville, PA, USA
Posts: 70
Thanks: 1
Thanked 9 Times in 9 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old June 22nd, 2009, 01:36 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old June 29th, 2009, 12:17 PM
Authorized User
Points: 152, Level: 3
Points: 152, Level: 3 Points: 152, Level: 3 Points: 152, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2008
Posts: 29
Thanks: 1
Thanked 5 Times in 5 Posts
Default

Could you show us the connection string you used?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5 (permalink)  
Old July 8th, 2009, 11:46 AM
nberardi's Avatar
Wrox Author
Points: 315, Level: 6
Points: 315, Level: 6 Points: 315, Level: 6 Points: 315, Level: 6
Activity: 14%
Activity: 14% Activity: 14% Activity: 14%
 
Join Date: Aug 2008
Location: Phoenixville, PA, USA
Posts: 70
Thanks: 1
Thanked 9 Times in 9 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 06:29 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc