|
|
 |
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.
|
 |

June 21st, 2009, 03:01 PM
|
|
Registered User
|
|
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

June 22nd, 2009, 04:34 AM
|
 |
Wrox Author
|
|
Join Date: Aug 2008
Location: Phoenixville, PA, USA
Posts: 70
Thanks: 1
Thanked 9 Times in 9 Posts
|
|
Please get the latest from CodePlex. You seem to be missing some files.
|

June 22nd, 2009, 01:36 PM
|
|
Registered User
|
|
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Same error
Quote:
Originally Posted by nberardi
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.
|

June 29th, 2009, 12:17 PM
|
|
Authorized User
|
|
Join Date: Dec 2008
Posts: 29
Thanks: 1
Thanked 5 Times in 5 Posts
|
|
Could you show us the connection string you used?
|

July 8th, 2009, 11:46 AM
|
 |
Wrox Author
|
|
Join Date: Aug 2008
Location: Phoenixville, PA, USA
Posts: 70
Thanks: 1
Thanked 9 Times in 9 Posts
|
|
You need to use SQL Server 2008 Express, that is the min requirement for the book.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |