Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| 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 Search this Thread Display Modes
  #1 (permalink)  
Old December 30th, 2008, 05:16 PM
Friend of Wrox
 
Join Date: Aug 2006
Location: , , .
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to vantoko
Default preview version of TheBeerHouse MVC on CodePlex

Hi,

is it possible that this version is not supported on web developer express 2008?

tnx

koen
  #2 (permalink)  
Old December 30th, 2008, 05:18 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Hello. I am the Technical Editor on this title and have been testing the code with Visual Studio 2008 Pro without much problem. What issue(s) are you having with the preview?

Thanks.
-Doug
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================
  #3 (permalink)  
Old December 30th, 2008, 05:28 PM
Friend of Wrox
 
Join Date: Aug 2006
Location: , , .
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to vantoko
Default

Hi Doug,

I just opened the solution file in the MVC folder.
I'm using Visual Web Developer 2008 Express edition (so not the Pro)
I get an error on the database.dbp file indicating that this project type is not supported by this version of the application

koen
  #4 (permalink)  
Old December 30th, 2008, 05:57 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Ya thats the database project. What you can do, instead of trying to open the site via the solution file is just go to File --> Open Website and select the TheBeerHouse folder as the website folder.

Let me know if this works for you.

hth.
-Doug
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================
  #5 (permalink)  
Old December 31st, 2008, 04:49 AM
Friend of Wrox
 
Join Date: Aug 2006
Location: , , .
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to vantoko
Default

Hi Doug,

I just opened the website using express. However, when I hit F5, I get this error :

Error 1 Could not load type 'TheBeerHouse.GlobalApplication'. C:\TheBeerHouse_MVC\TheBeerHouse\Global.asax 1

is this a seperate build ?

koen
  #6 (permalink)  
Old December 31st, 2008, 05:45 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I am trying to get this resolved I will let you know what I come up with.
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================
  #7 (permalink)  
Old December 31st, 2008, 06:26 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Ok I spoke with one of the authors so try this.

Navigate to the 'TheBeerHouse' directory (Make sure you are in the MVC folder!) inside you will find a project file named 'TheBeerHouse.csproj' double click that and it should open the website for you.

hth.
-Doug
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================
  #8 (permalink)  
Old January 1st, 2009, 02:49 PM
Friend of Wrox
 
Join Date: Aug 2006
Location: , , .
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to vantoko
Default

Hi Doug

First of all happy 2009 :)

thanks for the info.
I can now open the project and start it by hitting F5.
I do get this error.


System.TypeInitializationException was unhandled by user code
Message="The type initializer for 'TheBeerHouse.Configuration.TheBeerHouseSection' threw an exception."
Source="TheBeerHouse"
TypeName="TheBeerHouse.Configuration.TheBeerHouseS ection"
StackTrace:
at TheBeerHouse.Models.ArticleQueries.GetPublishedArt icles(Table`1 source, String category, Int32 page) in C:\TheBeerHouse_MVC\TheBeerHouse\Models\ArticleQue ries.cs:line 159
at TheBeerHouse.Controllers.ArticleController.Index(S tring category, Int32 page) in C:\TheBeerHouse_MVC\TheBeerHouse\Controllers\Artic leController.cs:line 26
at lambda_method(ExecutionScope , ControllerBase , Object[] )
at System.Web.Mvc.ActionMethodDispatcher.Execute(Cont rollerBase controller, Object[] parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActio nMethod(MethodInfo methodInfo, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.<>c__Displa yClassc.<InvokeActionMethodWithFilters>b__9()
at System.Web.Mvc.ControllerActionInvoker.InvokeActio nMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
InnerException: System.Configuration.ConfigurationErrorsException
Message="Unrecognized element 'newsletter'. (C:\\TheBeerHouse_MVC\\TheBeerHouse\\web.config line 29)"
Source="System.Configuration"
BareMessage="Unrecognized element 'newsletter'."
Filename="C:\\TheBeerHouse_MVC\\TheBeerHouse\\web. config"
Line=29
StackTrace:
at System.Configuration.BaseConfigurationRecord.Evalu ateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
at System.Configuration.BaseConfigurationRecord.Evalu ate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSe ctionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSe ction(String configKey, Boolean getLkg, Boolean checkPermission)
at System.Configuration.BaseConfigurationRecord.GetSe ction(String configKey)
at System.Web.HttpContext.GetSection(String sectionName)
at System.Web.Configuration.HttpConfigurationSystem.G etSection(String sectionName)
at System.Web.Configuration.WebConfigurationManager.G etSection(String sectionName)
at TheBeerHouse.Configuration.TheBeerHouseSection..cc tor() in C:\TheBeerHouse_MVC\TheBeerHouse\Configuration\The BeerHouseSection.cs:line 9
InnerException:


I will try to figure it out the next days when I have more time

koen
  #9 (permalink)  
Old January 1st, 2009, 10:56 PM
Registered User
 
Join Date: Jan 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default Wondering if anybody know the password for admin

I tried Admin and 1.admin.1 to no avail. Anybody can help?

Thanks,

Jiang
  #10 (permalink)  
Old January 1st, 2009, 11:36 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

If memory serves me (I am not at my dev machine right now) there was not an account explicitly called 'Admin' in the users table. In any event, the way to circumvent this would be to signup as a user for TBH then go into the database and add yourself to the Admin role.

Pretty simple really =]

hth.
-Doug
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================
The Following User Says Thank You to dparsons For This Useful Post:
jiang (January 1st, 2009)
 


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
TheBeerHouse MVC preview ASP.NET MVC Website Programming Problem Design Solution jminatel BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 July 18th, 2009 09:16 AM
chapter 13 - MVC omarosa BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 10 March 25th, 2009 12:00 AM
TBH to MVC Framework rocco50 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 June 23rd, 2008 04:50 PM
mvc datta123 Struts 1 October 26th, 2006 11:00 AM
MVC Design Issue gopalkis J2EE 3 September 21st, 2003 11:15 PM



All times are GMT -4. The time now is 07:12 PM.


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