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

December 30th, 2008, 05:16 PM
|
Friend of Wrox
|
|
Join Date: Aug 2006
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
preview version of TheBeerHouse MVC on CodePlex
Hi,
is it possible that this version is not supported on web developer express 2008?
tnx
koen
|

December 30th, 2008, 05:18 PM
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
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."
===============================================
|

December 30th, 2008, 05:28 PM
|
Friend of Wrox
|
|
Join Date: Aug 2006
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
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
|

December 30th, 2008, 05:57 PM
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
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."
===============================================
|

December 31st, 2008, 04:49 AM
|
Friend of Wrox
|
|
Join Date: Aug 2006
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
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
|

December 31st, 2008, 05:45 PM
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
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."
===============================================
|

December 31st, 2008, 06:26 PM
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
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."
===============================================
|

January 1st, 2009, 02:49 PM
|
Friend of Wrox
|
|
Join Date: Aug 2006
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
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
|

January 1st, 2009, 10:56 PM
|
Registered User
|
|
Join Date: Jan 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Wondering if anybody know the password for admin
I tried Admin and 1.admin.1 to no avail. Anybody can help?
Thanks,
Jiang
|

January 1st, 2009, 11:36 PM
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
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)
|
|
 |